hLookup

Chris3177

New Member
Joined
Jul 27, 2011
Messages
27
I want excel to look up a certain value in a row and for each cell that has the value I want it to sum the corresponding numerical values.

For example:
C/R A B C D E F
1 Director CRA Mng CRA CRA Mng
2
3
4
5
6 1.4 1.3 1.0 .08 .98 .78

The formula should look up "CRA" in row 1 and then sum all of the corresponding values in row 6 i.e. 1.3+.08+.98 = 2.36

I tried a hlookup, but don't seem to know how to use the formula to look for multiple values of the same and then add them together???

Thank you!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I want excel to look up a certain value in a row and for each cell that has the value I want it to sum the corresponding numerical values.

For example:
C/R A B C D E F
1 Director CRA Mng CRA CRA Mng
2
3
4
5
6 1.4 1.3 1.0 .08 .98 .78

The formula should look up "CRA" in row 1 and then sum all of the corresponding values in row 6 i.e. 1.3+.08+.98 = 2.36

I tried a hlookup, but don't seem to know how to use the formula to look for multiple values of the same and then add them together???

Thank you!
Try this...

=SUMIF(A1:F1,"CRA",A6:F6)
 
Upvote 0
I guess I spoke to soon...

The cells i want to add are not in a range such as A6:F6 and there a multiple cells that need to be summed. Currently the formula is as you stated except for the last portion. The formula reads as:

=SUMIF(A1:F1,"CRA",A6,C6,F6,I6,L6,N6,Q6) and excel doesn't like this.

Thanks in advance!
 
Upvote 0
I guess I spoke to soon...

The cells i want to add are not in a range such as A6:F6 and there a multiple cells that need to be summed. Currently the formula is as you stated except for the last portion. The formula reads as:

=SUMIF(A1:F1,"CRA",A6,C6,F6,I6,L6,N6,Q6) and excel doesn't like this.

Thanks in advance!
If the row that contains the criteria value "CRA" only goes to column F, A1:F1, then how can you relate the cells to sum I6,L6,N6,Q6 to the criteria "CRA"?
 
Upvote 0
If the row that contains the criteria value "CRA" only goes to column F, A1:F1, then how can you relate the cells to sum I6,L6,N6,Q6 to the criteria "CRA"?
Sorry, the I forgot to update the first portion of the formula.

=SUMIF(A1:Q1,"CRA",A6,C6,F6,I6,L6,N6,Q6)

I hope that helps.

Thx
 
Upvote 0
Why can't you just use:

=SUMIF(A1:Q1,"CRA",A6:Q6)
The individual cells reference are sums of the cells in between. In my actual spreadsheet there are multiple cells in between. For example I am trying to look at cells:
C6,H6,M6... These cells are the sum of the cells in between. For example the data in cell C6 is the sum of the data in A6:B6, H6 is the sum of D6:G6 etc.
 
Upvote 0
The individual cells reference are sums of the cells in between. In my actual spreadsheet there are multiple cells in between. For example I am trying to look at cells:
C6,H6,M6... These cells are the sum of the cells in between. For example the data in cell C6 is the sum of the data in A6:B6, H6 is the sum of D6:G6 etc.
Well, at this point I'm confused and would need to see the setup with the data.

Can you post a sample file? You can use a free file host if need be.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

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