Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default text and numerical values in two columns

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
--
Bev
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default text and numerical values in two columns

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

and then

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


(adjust the 100 to suit)
--
Gary''s Student - gsnu200788


"Bev" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default text and numerical values in two columns

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

"Bev" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default text and numerical values in two columns

=Countif(B2:B6,"F")

=Countif(B2:B6,"R")
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Bev" <Bev trucking wrote in message
...
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
--
Bev


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Only chart numerical values, not error values andy Charts and Charting in Excel 2 November 8th 07 10:46 PM
Adding numerical values based on multiple values in another column Kazmaniac Excel Worksheet Functions 6 April 4th 07 08:53 PM
How to equate Text Drop Down selections to numerical values Four Kings Excel Discussion (Misc queries) 3 January 22nd 06 05:11 AM
text has numerical values TXEagle Excel Worksheet Functions 5 August 16th 05 11:34 PM
Assign numerical values to text codes Bridget Excel Worksheet Functions 3 April 18th 05 11:33 PM


All times are GMT +1. The time now is 10:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"