text and numerical values in two columns

B

Bev

I have two columns, one with either the letter R or F. In the other column
there are various numbers (volumes). I need a formula that tells me how to
add up all the volumes associated with R (or of course F)

eg

Vol F/R
6 F
8 F
12 R
98 F
27 R

etc

Can you help please
 
G

Gary''s Student

enter:
=SUMPRODUCT(A1:A100,--(B1:B100="F"))

and then

=SUMPRODUCT(A1:A100,--(B1:B100="R"))


(adjust the 100 to suit)
 
S

Satish Nelanuthala

Hello Bev,

You can do this by using SUMIF function. Lets say your data starts in cell
A1, the formula would be sumif(B2:B6,"=R",A2:A6). Hope this helps you.

Satish Nelanuthala
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top