VLOOKUP imbedded in SUM function-Simplify

Nice SOP

New Member
Joined
Jun 28, 2013
Messages
6
Below is the current formula I have that needs simplified.

=IFERROR(SUM(INDEX(Month_Range,MATCH($A79&"-"&$B79&"-Cost-US",Value_ID,0),COLUMN()-5),INDEX(Month_Range,MATCH($A79&"-"&$B79&"-Cost-APAC",Value_ID,0),COLUMN()-5),INDEX(Month_Range,MATCH($A79&"-"&$B79&"-Cost-EMEA",Value_ID,0),COLUMN()-5))/SUM(INDEX(Month_Range,MATCH($A79&"-"&$B79&"-Minutes-US",Value_ID,0),COLUMN()-5),INDEX(Month_Range,MATCH($A79&"-"&$B79&"-Minutes-APAC",Value_ID,0),COLUMN()-5),INDEX(Month_Range,MATCH($A79&"-"&$B79&"-Minutes-EMEA",Value_ID,0),COLUMN()-5)),0)

Essentially what I'm doing is using the Index/Match combonation as a subsitute for vlookup. I have a list of ID's named as "Value_ID" in name manager. The ID's have 4 componets to them, seperated by a "-". I want to sum up all values for the regions (US, APAC, and EMEA) designated in the last section of the ID. It's very tedious copying and pasting the formula only to change the region name, espicailly when i have 100+ regions. Very messy and very hard to correct errors.


Is there any way I can trick the sum function into doing this for me so my function looks much cleaner? I have all the regions as a list in name manager, maybe I could do somthing with this?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Interesting thought. Is there a way I could make a condition where the collumn value must be present in my regions name manager list?
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top