Help with: Selecting numbers to add based on the row below

SamP

New Member
Joined
Jan 26, 2005
Messages
2
Could someone please help me figure out, how I should go about this. I am tring to add the values associated with the letter below.
Book1.xls
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1VacationVVactionhoursusedVacationhoursleftFlexhoursusedFlexhoursleftFloatingHolidayshoursusedFloatingHolidayshoursleft
2FlexDayF
3FloatingHolidayH
4
5
612456789222324252627282930310120040016
7JanuaryHours844315
8CodeVHFFHV
Sheet1


For example. there is a V under a value of 8 and a value of 5. I want to add then together and put the sum in a cell.
Any ideas??
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
KenWright said:
=SUMPRODUCT(--(C7:T7="V"),(C8:T8))

Thanks for the help. It did not work that way but when i made it
=SUMPRODUCT(--(C8:T8="V"),(C7:T7))
It worked like a champ. :LOL:

Thanks
Sam
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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