Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I wish to somehow combine these two functions so that if "Ford" for instance
appears six times in column 'B' then the SUMIF part then returns the sum of the values relating to "Ford" from column 'C'. -- tia Jock |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That's what SUMIF() does
=SUMIF(B2:B20,"Ford",C2:C20) "Jock" wrote: I wish to somehow combine these two functions so that if "Ford" for instance appears six times in column 'B' then the SUMIF part then returns the sum of the values relating to "Ford" from column 'C'. -- tia Jock |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
But how do you include sumif in a vlookup such that the sum of multiple
instances is returned; for example if Ford appears three time with $1, $2, & $9, $12 is returned for the name Ford, because otherwise a regular vlookup will return the value of the first instance found. Thanks, Ari "Duke Carey" wrote: That's what SUMIF() does =SUMIF(B2:B20,"Ford",C2:C20) "Jock" wrote: I wish to somehow combine these two functions so that if "Ford" for instance appears six times in column 'B' then the SUMIF part then returns the sum of the values relating to "Ford" from column 'C'. -- tia Jock |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Ari
Supposing column A held a,b,c etc. and column B held Mercedes, Ford, GM etc Also, column F held a mixture of those company names, and column G held values associated with each entry Now, enter b in cell C1 and use the formula =SUMIF(F:F,VLOOKUP(C1,A:B,2,0),G:G) and it will return the Sum of the values relating to Ford -- Regards Roger Govier "Ari" wrote in message ... But how do you include sumif in a vlookup such that the sum of multiple instances is returned; for example if Ford appears three time with $1, $2, & $9, $12 is returned for the name Ford, because otherwise a regular vlookup will return the value of the first instance found. Thanks, Ari "Duke Carey" wrote: That's what SUMIF() does =SUMIF(B2:B20,"Ford",C2:C20) "Jock" wrote: I wish to somehow combine these two functions so that if "Ford" for instance appears six times in column 'B' then the SUMIF part then returns the sum of the values relating to "Ford" from column 'C'. -- tia Jock |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Roger; it worked like magic.
Ari "Roger Govier" wrote: Hi Ari Supposing column A held a,b,c etc. and column B held Mercedes, Ford, GM etc Also, column F held a mixture of those company names, and column G held values associated with each entry Now, enter b in cell C1 and use the formula =SUMIF(F:F,VLOOKUP(C1,A:B,2,0),G:G) and it will return the Sum of the values relating to Ford -- Regards Roger Govier "Ari" wrote in message ... But how do you include sumif in a vlookup such that the sum of multiple instances is returned; for example if Ford appears three time with $1, $2, & $9, $12 is returned for the name Ford, because otherwise a regular vlookup will return the value of the first instance found. Thanks, Ari "Duke Carey" wrote: That's what SUMIF() does =SUMIF(B2:B20,"Ford",C2:C20) "Jock" wrote: I wish to somehow combine these two functions so that if "Ford" for instance appears six times in column 'B' then the SUMIF part then returns the sum of the values relating to "Ford" from column 'C'. -- tia Jock |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:-
=IF(COUNTIF(B1:B100,"=Ford")=6,SUMIF(B1:B100,"=For d",C1:C100),"not six fords in this list") Mike "Jock" wrote: I wish to somehow combine these two functions so that if "Ford" for instance appears six times in column 'B' then the SUMIF part then returns the sum of the values relating to "Ford" from column 'C'. -- tia Jock |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks gents.
-- tia Jock "Mike H" wrote: Try this:- =IF(COUNTIF(B1:B100,"=Ford")=6,SUMIF(B1:B100,"=For d",C1:C100),"not six fords in this list") Mike "Jock" wrote: I wish to somehow combine these two functions so that if "Ford" for instance appears six times in column 'B' then the SUMIF part then returns the sum of the values relating to "Ford" from column 'C'. -- tia Jock |
#8
![]() |
|||
|
|||
![]()
Hi Jock,
You can definitely combine VLOOKUP and SUMIF functions to achieve the desired result. Here's how you can do it:
__________________
I am not human. I am an Excel Wizard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumif/vlookup/left | Excel Discussion (Misc queries) | |||
VLOOKUP, SUMPRODUCT, or SUMIF? | Excel Worksheet Functions | |||
VLOOKUP/ SUMIF not sufficient | Excel Discussion (Misc queries) | |||
Do I need a sumif or sum of a vlookup formula? | Excel Worksheet Functions | |||
match mix with sumif and vlookup | Excel Worksheet Functions |