Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sunshine.girl
 
Posts: n/a
Default How do you get the sum of 2 different text values?

For instance, I need to add the amount of times "S" and "HS" appear in a row.
I figured out that the COUNTIF function will add the amount of times "S"
appears in a row, but I can't figure out how to make it add both and give me
a number value as the answer. Is this even possible?
  #2   Report Post  
PCLIVE
 
Posts: n/a
Default How do you get the sum of 2 different text values?

Try this:

=COUNTIF(A:A,"S")+COUNTIF(A:A,"HS")

Regards,
Paul

"sunshine.girl" wrote in message
...
For instance, I need to add the amount of times "S" and "HS" appear in a
row.
I figured out that the COUNTIF function will add the amount of times "S"
appears in a row, but I can't figure out how to make it add both and give
me
a number value as the answer. Is this even possible?



  #3   Report Post  
sunshine.girl
 
Posts: n/a
Default How do you get the sum of 2 different text values?

I just got the answer, if anyone is curious. The formula would read as
follows: =COUNTIF(B10:AF10,"S")+COUNTIF(B10:AF10,"HS")

"sunshine.girl" wrote:

For instance, I need to add the amount of times "S" and "HS" appear in a row.
I figured out that the COUNTIF function will add the amount of times "S"
appears in a row, but I can't figure out how to make it add both and give me
a number value as the answer. Is this even possible?

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default How do you get the sum of 2 different text values?

One mo
=SUM(COUNTIF(B10:AF10,{"S","HS"}))



sunshine.girl wrote:

I just got the answer, if anyone is curious. The formula would read as
follows: =COUNTIF(B10:AF10,"S")+COUNTIF(B10:AF10,"HS")

"sunshine.girl" wrote:

For instance, I need to add the amount of times "S" and "HS" appear in a row.
I figured out that the COUNTIF function will add the amount of times "S"
appears in a row, but I can't figure out how to make it add both and give me
a number value as the answer. Is this even possible?


--

Dave Peterson
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
How do I LOOKUP text values Amber C-W Excel Worksheet Functions 4 July 20th 05 05:27 PM
How to use an array or matrix to return text vs. numeric values Ingrid Excel Worksheet Functions 2 April 10th 05 12:51 AM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
how do i detect like text and add corresponding values? Lucy Excel Discussion (Misc queries) 2 December 17th 04 04:59 PM
text and values combined in one cel Bart Excel Discussion (Misc queries) 1 December 14th 04 08:36 AM


All times are GMT +1. The time now is 01:09 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"