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
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
As a first thought, why not have a total column and pick up that value through VLOOKUP ?
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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