Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to return numbers (which will total together) for specific text.
I want the formula to look for specific text (in one column) and return the number that correspondes with that text. For Example: =LOOKUP("CHURCHILL",$A17:$A50,C$17:C$65)+LOOKUP("J AGO",$A17:$A50,C$17:C$65) the problem I'm running into is that if there is no match for the text, the formula automatically returns the previous number. I just want it to return a zero if there is no match. Please help if you can |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tom - Thank you very much, it worked, except it finally came back and said
formula is too long (there's over 50 names). Is there any way around this? "Tom Ogilvy" wrote: =If(iserror(VLOOKUP("CHURCHILL",$A17:$C50,3,False) ),0,VLOOKUP("CHURCHILL",$A 17:$C50,3,False))+If(iserror(VLOOKUP("JAGO",$A17:$ C50,3,False)),0,VLOOKUP("J AGO",$A17:$C50,3,False)) Your two ranges should be the same length in cells. Maybe that was a typo. -- Regards, Tom Ogilvy "kimberly_churchill" wrote in message ... I am trying to return numbers (which will total together) for specific text. I want the formula to look for specific text (in one column) and return the number that correspondes with that text. For Example: =LOOKUP("CHURCHILL",$A17:$A50,C$17:C$65)+LOOKUP("J AGO",$A17:$A50,C$17:C$65) the problem I'm running into is that if there is no match for the text, the formula automatically returns the previous number. I just want it to return a zero if there is no match. Please help if you can |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=SUMPRODUCT(SUMIF($A$17:$A$50,Sheet1!A1:A50,$A$17: $A$50))
add another sheet (sheet1), then enter your 50 names there in A1:A50. Locations are examples (it doesn't have to be on another sheet). Alter to suit you situation. -- Regards, Tom Ogilvy "kimberly_churchill" wrote in message ... Tom - Thank you very much, it worked, except it finally came back and said formula is too long (there's over 50 names). Is there any way around this? "Tom Ogilvy" wrote: =If(iserror(VLOOKUP("CHURCHILL",$A17:$C50,3,False) ),0,VLOOKUP("CHURCHILL",$A 17:$C50,3,False))+If(iserror(VLOOKUP("JAGO",$A17:$ C50,3,False)),0,VLOOKUP("J AGO",$A17:$C50,3,False)) Your two ranges should be the same length in cells. Maybe that was a typo. -- Regards, Tom Ogilvy "kimberly_churchill" wrote in message ... I am trying to return numbers (which will total together) for specific text. I want the formula to look for specific text (in one column) and return the number that correspondes with that text. For Example: =LOOKUP("CHURCHILL",$A17:$A50,C$17:C$65)+LOOKUP("J AGO",$A17:$A50,C$17:C$65) the problem I'm running into is that if there is no match for the text, the formula automatically returns the previous number. I just want it to return a zero if there is no match. Please help if you can |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
lookup help. lookup result based on data in 2 columns | Excel Worksheet Functions | |||
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU | Excel Discussion (Misc queries) | |||
Lookup looks to the prior column if zero appears in the lookup col | Excel Discussion (Misc queries) | |||
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup | Excel Worksheet Functions | |||
Sumproduct - Condition based on lookup of a Lookup | Excel Discussion (Misc queries) |