VLOOKUP mult. values and sum result?

BradMichaels

New Member
Joined
May 19, 2011
Messages
8
I have a question on the VLOOKUP function.

I have a spreadsheet that lists out clients with their account numbers and the revenue they earn (B2:D7). I have a data range (F2:G22) that lists revenue by account number. Some clients have multiple accounts and I'd like the vlookup result to show the sum of the revenue for the multiple accounts. If possible, how would I structure that formula?

excel_ex.jpg
 
I agree, but that's not going to happen although I'm making a case for it. The example I provided was just to explain what I'm trying to figure out how to do as I do multiple account summations manually today.
OK.

Just don't "kill" yourself when there are other options!
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Yes they both work.

What would I have to change if I switched my account number to a different length? Sorry, I don't fully understand the functions of the formula to figure it out myself.

If, for example, your account numbers are 8 digits in length, you'll need to replace...

*5-5+1

with

*9-9+1

As you can see, the number 5 changes to 9. That's 8 digits for the account number and one for the comma for a total of 9.
 
Upvote 0
If, for example, your account numbers are 8 digits in length, you'll need to replace...

*5-5+1

with

*9-9+1

As you can see, the number 5 changes to 9. That's 8 digits for the account number and one for the comma for a total of 9.

Awesome, thank you!
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,853
Members
452,948
Latest member
UsmanAli786

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