Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mikaka
 
Posts: n/a
Default How do I set up a formula to count multiple items?

I want to set up a formula to count certain items in a row based on what the
content is.

So, if the cell contains an "x" count it as 1, if it contains an "e" count
it is 0.5, and then add up the values.

I hope that's clear enough
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default How do I set up a formula to count multiple items?

Hi!

Try this:

=COUNTIF(A1:J1,"x")+COUNTIF(A1:J1,"e")/2

Biff

"Mikaka" wrote in message
...
I want to set up a formula to count certain items in a row based on what
the
content is.

So, if the cell contains an "x" count it as 1, if it contains an "e" count
it is 0.5, and then add up the values.

I hope that's clear enough



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mikaka
 
Posts: n/a
Default How do I set up a formula to count multiple items?

works great, thanks...

question though, why the division by two?
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mikaka
 
Posts: n/a
Default How do I set up a formula to count multiple items?

wait, i think i understand why; you're dividing the second strand of values
that are counting the e's by two, thus giving me the 0.5
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default How do I set up a formula to count multiple items?

question though, why the division by two?

Countif counts each instance of the criteria. Since "e" has the value of 0.5
you can either divide the total count by 2 or multiply that total count by
0.5:

=COUNTIF(A1:J1,"x")+COUNTIF(A1:J1,"e")/2
=COUNTIF(A1:J1,"x")+COUNTIF(A1:J1,"e")*0.5

Dividing by 2 saves a couple of keystrokes!

Biff

"Mikaka" wrote in message
...
works great, thanks...

question though, why the division by two?



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
Formula to lookup Multiple Column Text and then Count Result ShelbyMan Excel Worksheet Functions 2 August 22nd 05 01:43 AM
Array Formula w/ Multiple SumIf Criteria Andy Excel Worksheet Functions 3 July 13th 05 08:56 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Multiple Condition Sumif Formula momtoaj Excel Worksheet Functions 3 April 6th 05 04:06 PM
Count of items using multiple criteria mbparks Excel Worksheet Functions 7 January 2nd 05 09:57 PM


All times are GMT +1. The time now is 12:39 AM.

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"