VLOOKUP? Sums of multiple columns

groovyjames

New Member
Joined
Mar 3, 2005
Messages
3
this is probably really simple compared with the other problems I've seen...

i've got an excel file with descriptions in the first column and values spread out in multiple columns to the right:

A 10 20 30
B 5 12 39
C 98 32 12

i need a function which will search for a value in column A and return the sum of the values in columns B to D, ie for "a" the answer would be 60

i've tried using VLOOKUP(A:A;"A";B:B)+VLOOKUP(A:A;"A";C:C)+VLOOKUP(A:A;"A";C:C) but the formular is too long for excel when I increase the number of columns. i thought VLOOKUP(A:A;"A";B:D) could work, but it doesn't. does anyone know how I could solve this problem?

cheers, james
 

Some videos you may like

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

P Sitaram

Well-known Member
Joined
Jun 24, 2003
Messages
1,974
As a first thought, why not have a total column and pick up that value through VLOOKUP ?
 

groovyjames

New Member
Joined
Mar 3, 2005
Messages
3
thanks for the speedy reply.

the problem is that the number of columns which I want to add is not constant. the columns represent months - sometimes I want to calculate jan to mar for example, and sometimes jan to dec.
 

rs2k

Well-known Member
Joined
Aug 15, 2004
Messages
1,413
Not a complete solution, but if you highlight the deired cells and look at the bottom right of your screen, it will sum the highlighted cells for you. I don't know of a way to link that to a cell though, sorry.

Colin.
 

groovyjames

New Member
Joined
Mar 3, 2005
Messages
3
great! thanks psitaram - exactly what I wanted. don't understand the formular one bit, but it gives me the numbers which i want.

thanks to rs2k as well

james
 

Watch MrExcel Video

Forum statistics

Threads
1,122,521
Messages
5,596,650
Members
414,083
Latest member
Mrsash

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
Top