Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default COUNTIF formula with several variables in 1 column

Each day I want to be able to see how many boys and girls have participated
in various activities. In order to make as user friendly for my colleague as
possible I ask them to enter the data as follows in 1 column:

- G for girls
- S for Sports hall
- A for Art room
- M for Multipurpose area


The formula I used for the gender is =COUNTIF(H3:H510,"B"). I thought that
I could have GSM in a cell and still us that formula and that Excel would be
able to isolate each element.

Once more, it is not working.

I do not want to have to use countless columns. Any help would be grately
appreciated.

Thank you
--
NitaMax
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default COUNTIF formula with several variables in 1 column

Hi,

Try this:

=SUMPRODUCT(--(A1:A10={"B","S","M"}))

HTH
Jean-Guy

"NitaMax" wrote:

Each day I want to be able to see how many boys and girls have participated
in various activities. In order to make as user friendly for my colleague as
possible I ask them to enter the data as follows in 1 column:

- G for girls
- S for Sports hall
- A for Art room
- M for Multipurpose area


The formula I used for the gender is =COUNTIF(H3:H510,"B"). I thought that
I could have GSM in a cell and still us that formula and that Excel would be
able to isolate each element.

Once more, it is not working.

I do not want to have to use countless columns. Any help would be grately
appreciated.

Thank you
--
NitaMax

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default COUNTIF formula with several variables in 1 column

Try this:

A1 = G
A2 = S
A3 = M

=SUMPRODUCT(--(ISNUMBER(MATCH(H3:H510,A1:A3,0))))

Biff

"NitaMax" wrote in message
...
Each day I want to be able to see how many boys and girls have
participated
in various activities. In order to make as user friendly for my colleague
as
possible I ask them to enter the data as follows in 1 column:

- G for girls
- S for Sports hall
- A for Art room
- M for Multipurpose area


The formula I used for the gender is =COUNTIF(H3:H510,"B"). I thought
that
I could have GSM in a cell and still us that formula and that Excel would
be
able to isolate each element.

Once more, it is not working.

I do not want to have to use countless columns. Any help would be grately
appreciated.

Thank you
--
NitaMax



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default COUNTIF formula with several variables in 1 column

Just in case you happen to prefer using Countif(), try this:

=SUM(COUNTIF(H3:H510,{"G","S","M"}))

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"NitaMax" wrote in message
...
Each day I want to be able to see how many boys and girls have

participated
in various activities. In order to make as user friendly for my colleague

as
possible I ask them to enter the data as follows in 1 column:

- G for girls
- S for Sports hall
- A for Art room
- M for Multipurpose area


The formula I used for the gender is =COUNTIF(H3:H510,"B"). I thought

that
I could have GSM in a cell and still us that formula and that Excel would

be
able to isolate each element.

Once more, it is not working.

I do not want to have to use countless columns. Any help would be grately
appreciated.

Thank you
--
NitaMax


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
Lookup Data in two seperate Spreadsheets Padraig Excel Worksheet Functions 6 June 28th 06 03:05 PM
how can i multiply two columns edgar Excel Worksheet Functions 7 March 2nd 06 04:29 PM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 03:03 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


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