EXCEL Vlookup Help

%3CLINGO-SUB%20id%3D%22lingo-sub-1303168%22%20slang%3D%22en-US%22%3EEXCEL%20Vlookup%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1303168%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20add%20multiple%20values%20based%20on%20zip%20code.%20For%20example%2C%20I%20have%20a%20data%20set%20based%20on%20zip%20code%20and%20want%20to%20select%20multiple%20zip%20codes%20then%20sum%20the%20data%20to%20the%20immediate%20right%20of%20those%20multiple%20zip%20codes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%3C%2FP%3E%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2233.333333333333336%25%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%3EA%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%3EB%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2233.333333333333336%25%22%3E1%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%3E55001%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%3E100%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2233.333333333333336%25%22%3E2%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%3E55002%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%3E200%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20this%20scenario%20I%20want%20to%20include%20both%2085001%20and%2085002%20and%20return%20an%20output%20of%20300.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20probably%20pretty%20simple%20but%20I%20cannot%20figure%20it%20out.%20Thanks%20in%20advance%20for%20your%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1303168%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1303315%22%20slang%3D%22en-US%22%3ERe%3A%20EXCEL%20Vlookup%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1303315%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F619688%22%20target%3D%22_blank%22%3E%40ponder10%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20start%20this%20out%20by%20referring%20to%20VLOOKUP.%20Although%20that%20could%20work%2C%20it's%20probably%20not%20the%20most%20efficient.%20From%20your%20description%20it%20sounds%20as%20if%20you%20would%20benefit%20from%20looking%20into%20the%20%3CSTRONG%3ESUMIFS%3C%2FSTRONG%3E%20function%20instead.%20But%20some%20of%20the%20answer%20might%20also%20depend%20on%20how%20many%20different%20zip%20codes%20you%20might%20be%20expecting%20to%20use--at%20least%20I'd%20want%20to%20know%20what's%20the%20maximum.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20depending%20on%20what%20your%20answer%20is%20to%20that%2C%20I'd%20start%20to%20wonder%20if%20there%20isn't%20something%20in%20common%20(some%20other%20attribute)%20that%20identifies%20the%20zip%20codes%20that%20you're%20wanting%20to%20summarize%20this%20way%20and%20whether%20or%20not%20that%20attribute%20could%20be%20added%20to%20the%20table%2C%20to%20make%20it%20easier%20to%20use%20%3CSTRONG%3ESUMIFS%3C%2FSTRONG%3E%20or%20even%20%3CSTRONG%3ESUMIF%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyway%2C%20there%20are%20lots%20of%20resources%2C%20in%20addition%20to%20Excel's%20own%20Help%20text%2C%20that%20you%20can%20refer%20to%20for%20those%20functions.%20Since%20you%20already%20know%20VLOOKUP%2C%20I'm%20assuming%20you%20won't%20mind%20doing%20your%20own%20research%20into%20what%20fits%20best.%20By%20all%20means%2C%20come%20back%20here%20with%20any%20follow-up%20questions.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1303853%22%20slang%3D%22en-US%22%3ERe%3A%20EXCEL%20Vlookup%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1303853%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20largest%20group%20will%20have%2075%20zip%20codes.%20I%20am%20trying%20multiple%20criteria%20in%20SUMIFS%20but%20for%20some%20reason%20the%20response%20is%200%20rather%20than%20300.%20Definitely%20user%20error.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1304030%22%20slang%3D%22en-US%22%3ERe%3A%20EXCEL%20Vlookup%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1304030%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F619688%22%20target%3D%22_blank%22%3E%40ponder10%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20second%20paragraph%20in%20my%20last%20message%20contained%20an%20implicit%20question%3A%20%3CEM%3E%22....depending%20on%20what%20your%20answer%20is%20to%20that%2C%20I'd%20start%20to%20wonder%20if%20there%20isn't%20something%20in%20common%20(%3CU%3Esome%20other%20attribute%3C%2FU%3E)%20that%20identifies%20the%20zip%20codes%20that%20you're%20wanting%20to%20summarize%20this%20way%20and%20%3CU%3Ewhether%20or%20not%20that%20attribute%20could%20be%20added%20to%20the%20table%2C%20to%20make%20it%20easier%20to%20use%20%3CSTRONG%3ESUMIFS%3C%2FSTRONG%3E%20or%20even%20%3CSTRONG%3ESUMIF%3C%2FSTRONG%3E%2C%22%20%3C%2FU%3E%3C%2FEM%3Eand%20now%20that%20you're%20acknowledging%20that%20there%20can%20be%20as%20many%20as%2075%20zip%20codes%20in%20any%20one%20grouping%2C%20I%20now%20really%20wonder%20what%20lies%20behind%20the%20selection%20of%20zip%20codes%20in%20the%20first%20place.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20aside%2C%20I%20think%20you're%20looking%20for%20some%20of%20the%20newer%20Dynamic%20Array%20functions.%20I'm%20just%20learning%20them%20myself.%20Here's%20a%20resource%20you%20might%20find%20helpful...%3CA%20href%3D%22https%3A%2F%2Fexceljet.net%2Fsearch%3Fquery%3Ddynamic%2Barrays%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fexceljet.net%2Fsearch%3Fquery%3Ddynamic%2Barrays%3C%2FA%3E%3CU%3E%3CBR%20%2F%3E%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1304720%22%20slang%3D%22en-US%22%3ERe%3A%20EXCEL%20Vlookup%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1304720%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F619688%22%20target%3D%22_blank%22%3E%40ponder10%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20SUMIFS()%20returns%20zero%20instead%20of%20expected%20value%2C%20wrong%20criteria%20is%20only%20one%20of%20the%20reasons.%20Another%20one%20if%20we%20have%20texts%20which%20represent%20numbers%20instead%20of%20numbers.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I am trying to add multiple values based on zip code. For example, I have a data set based on zip code and want to select multiple zip codes then sum the data to the immediate right of those multiple zip codes.

 

Example:

 AB
155001100
255002200

 

In this scenario I want to include both 85001 and 85002 and return an output of 300.

 

This is probably pretty simple but I cannot figure it out. Thanks in advance for your help.

4 Replies
Highlighted

@ponder10 

 

You start this out by referring to VLOOKUP. Although that could work, it's probably not the most efficient. From your description it sounds as if you would benefit from looking into the SUMIFS function instead. But some of the answer might also depend on how many different zip codes you might be expecting to use--at least I'd want to know what's the maximum.

 

And depending on what your answer is to that, I'd start to wonder if there isn't something in common (some other attribute) that identifies the zip codes that you're wanting to summarize this way and whether or not that attribute could be added to the table, to make it easier to use SUMIFS or even SUMIF.

 

Anyway, there are lots of resources, in addition to Excel's own Help text, that you can refer to for those functions. Since you already know VLOOKUP, I'm assuming you won't mind doing your own research into what fits best. By all means, come back here with any follow-up questions.

Highlighted

@mathetes 

 

The largest group will have 75 zip codes. I am trying multiple criteria in SUMIFS but for some reason the response is 0 rather than 300. Definitely user error.

Highlighted

@ponder10 

 

The second paragraph in my last message contained an implicit question: "....depending on what your answer is to that, I'd start to wonder if there isn't something in common (some other attribute) that identifies the zip codes that you're wanting to summarize this way and whether or not that attribute could be added to the table, to make it easier to use SUMIFS or even SUMIF," and now that you're acknowledging that there can be as many as 75 zip codes in any one grouping, I now really wonder what lies behind the selection of zip codes in the first place.

 

That aside, I think you're looking for some of the newer Dynamic Array functions. I'm just learning them myself. Here's a resource you might find helpful...https://exceljet.net/search?query=dynamic+arrays

 

 

Highlighted

@ponder10 

If SUMIFS() returns zero instead of expected value, wrong criteria is only one of the reasons. Another one if we have texts which represent numbers instead of numbers.