Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-11-2010, 02:19 PM
nfphilpot nfphilpot is offline Using IF Windows XP Using IF Office 2007
Novice
Using IF
 
Join Date: Nov 2010
Posts: 7
nfphilpot is on a distinguished road
Default Using IF

I am looking for a formula that looks up the value of a cell if another cell contains certain text. ie.



.....A.......B........C.......D
1 John....£30....£55....£90
2 Tim......£40
3 Rosie....£30
4 John.....£25
5 Tim......£50

(excuse my use of '..' to get a correctish lay out...so novice i know

The relationship between columns A and B is 'A' ie John saved £30 and at a later date saved £25 (cell 4B)

So im looking for a formula that adds up all that each individual has saved.

Something like

=IF(A1:A5) equals 'John' then add all the values in column 'B' (in this case B1 and B4) and display the total in another Cell, say C1

=IF(A1:A5) equals 'Tim' then add all the values in column 'B' (in this case B2 and B5) and display the total in another Cell, say D1

Is there a formula that is cunning enough to add up all John, Tim and Rosie's individual totals

please imagine a lot of names and a lot of amounts.

Regards

Nic
Reply With Quote
  #2  
Old 11-11-2010, 02:41 PM
nfphilpot nfphilpot is offline Using IF Windows XP Using IF Office 2007
Novice
Using IF
 
Join Date: Nov 2010
Posts: 7
nfphilpot is on a distinguished road
Default

here is the file in question, note the laborious and basic formulas

the #VALUE! is cos the older version cannot support more than 30 'arguments'
Attached Files
File Type: xls Book2.xls (28.5 KB, 17 views)
Reply With Quote
  #3  
Old 11-11-2010, 03:49 PM
Kimberly Kimberly is offline Using IF Windows 7 Using IF Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Posts: 517
Kimberly is on a distinguished road
Default

=SUMIF(A1:A5,"john",B1:B5)
Reply With Quote
  #4  
Old 11-11-2010, 03:56 PM
Kimberly Kimberly is offline Using IF Windows 7 Using IF Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Posts: 517
Kimberly is on a distinguished road
Default

or better yet, enter a unique list of the names in Col J for example, and put this in K1

=SUMIF($A$1:$A$5,J1,$B$1:$B$5)
and copy down for all the names
Reply With Quote
  #5  
Old 11-14-2010, 09:24 AM
nfphilpot nfphilpot is offline Using IF Windows XP Using IF Office 2007
Novice
Using IF
 
Join Date: Nov 2010
Posts: 7
nfphilpot is on a distinguished road
Default

Quote:
Originally Posted by Kimberly View Post
or better yet, enter a unique list of the names in Col J for example, and put this in K1

=SUMIF($A$1:$A$5,J1,$B$1:$B$5)
and copy down for all the names
Would you mind giving me a quick example of this...cant figure exactly what you mean...

...thanks to the above formula, works a treat!
Reply With Quote
  #6  
Old 11-14-2010, 09:37 AM
Kimberly Kimberly is offline Using IF Windows 7 Using IF Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Posts: 517
Kimberly is on a distinguished road
Default

See attached.
Attached Files
File Type: xls Sumif.xls (25.0 KB, 14 views)
Reply With Quote
  #7  
Old 11-14-2010, 09:48 AM
nfphilpot nfphilpot is offline Using IF Windows XP Using IF Office 2007
Novice
Using IF
 
Join Date: Nov 2010
Posts: 7
nfphilpot is on a distinguished road
Default

Quote:
Originally Posted by Kimberly View Post
See attached.
Perfect...Many thanks
Reply With Quote
Reply



Other Forums: Access Forums

All times are GMT -7. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft