# Desperately need Hlookup Multiple same value returned - on a deadline

#### mercedes98

##### New Member
I am using Hlookup to find the letting V and when it finds the letter V is gives me the value in the cell under it. The issue is that I may or may not have more than 1 V in the array I am looking at and if there is more than one V then I need it to give me the total.
V V
0.00 8.00 8.00 0.00 0.00 0.00 0.00
=IF(ISNA(HLOOKUP(U9,E31:K32,2,FALSE))=TRUE,"0",HLOOKUP(U9,E31:K32,2,FALSE))
This is the formula I am using but it only gives me one 8 and I need the total of 16.
Can anyone help.
Someone suggested using this formula but I don't know how to fit it into my original formula =SUMPRODUCT((E31:K31)="V"*(E32:K32))

I am on a deadline and need to get this solved as soon as possible. I would appreciate any help at all. Thank you so much

### Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

#### oldbrewer

##### Well-known Member
the sumproduct formula replaces your formula

try it out on a mini made up spreadsheet

every time it finds a v it adds the number below the V to a running total and when it has found all the V's it gives you the total

#### gaz_chops

##### Well-known Member
The sum product formula should prob be

=SUMPRODUCT((E31:K31="V")*(E32:K32))

#### mercedes98

##### New Member
I tried using just the sumproduct and I am getting a #value! message so something isn't right. Any other suggestions?

#### mercedes98

##### New Member
ADVERTISEMENT
After thinking about it that formula won't work because there could be values in that row that are for something else like H which is for Holiday. So I need it to specifically find the values under the V not just any value in that row.

#### gaz_chops

##### Well-known Member
Have you tried the one I posted? That is what it does!

Or try a simple sumif

=SUMIF(E31:K31,"V",E32:K32)

#### mercedes98

##### New Member
THANK YOU!!!! I was trying the sumproduct not sumif.

#### gaz_chops

##### Well-known Member
You're welcome, the sumproduct will work if you use the one I posted

=SUMPRODUCT((E31:K31="V")*(E32:K32))

Replies
1
Views
293
Replies
0
Views
359
Replies
1
Views
2K
Replies
14
Views
977
Replies
2
Views
1K

Threads
1,196,007
Messages
6,012,829
Members
441,732
Latest member
Ayon

### 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

### 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