Link to home
Start Free TrialLog in
Avatar of mjbancroft
mjbancroft

asked on

Excel lookup tables & values

I would like some help to search for codes ("strings"), represented by columns in a table, returning a number found in this table corresponding to the correct month (rows) for the given code(s). In my example I have given two columns of codes but it could be three or even four columns of codes I am looking to sum based on the correct monthly value contained in the table.

See attached file.

Thanks for your help!
Table-help.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mjbancroft
mjbancroft

ASKER

Thanks for the quick responses. I have not created a macro before. About time I learned how to. Will work thru this: http://www.excel-easy.com/vba/create-a-macro.html

In the meantime I am interested in a cell formula. I will try using sumif() and find() but would appreciate it Guy if you could post the "formula" when you have a moment please.
You can always just download the file :)
I just did! It's brilliant. Thanks so much Shaun! I will wait for another day to master macros!
I also just got the sumif() formulas working! Thanks again Guy.
This exchange is incredible! Thanks to both for quick replies and great solutions!
Thanks for PROMPT and incredibly helpful solutions, on a Sunday too!
back home on pc, the formula would be like this:
=SUMIF($A$3:$A$9;$G4;B$3:$E$9)+SUMIF($A$3:$A$9;$H4;B$3:$E$9)