Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Excel formula for counting up odd / even numbers?

Thread Tools
 
Search this Thread
 
Old 17 December 2002, 12:37 PM
  #1  
Cat42
Scooby Regular
Thread Starter
 
Cat42's Avatar
 
Join Date: Jul 2002
Posts: 130
Likes: 0
Received 0 Likes on 0 Posts
Post

Can anyone help....

I have a long list of numbers on an Excel 2000 spreadsheet. What formula do I use to count up the number of odd and even numbers in the list?

Many thanks

ST.
Old 17 December 2002, 12:43 PM
  #2  
Fosters
Scooby Regular
 
Fosters's Avatar
 
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes on 0 Posts
Post

there's probably a slick way, but in a new column, do a formula on the first row:
=IF(MOD(A1,2)>0,A1,0)
and then dbl-click that down to the bottom of the data.
sum the new column
do the same in a new column for even numbers (mod(x,2)=0)
Old 17 December 2002, 12:53 PM
  #3  
Cat42
Scooby Regular
Thread Starter
 
Cat42's Avatar
 
Join Date: Jul 2002
Posts: 130
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

Fosters,

I tried it but got some rather large figures come up so I just changed the 2nd A1 in the formula you gave to a 1 so odd numbers appear as 1's and even as 0's.

Now I just need put COUNTIF at the bottom to calculate how many 0's and 1's to give me the totals required.

Thanks for that mate.
Regards,
ST.
Old 17 December 2002, 12:59 PM
  #4  
Fosters
Scooby Regular
 
Fosters's Avatar
 
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes on 0 Posts
Post

D'Oh! thought you meant sum them - serves me right for hitting reply thinking "oo oo I know that".
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
Ganz1983
Subaru
5
02 October 2015 09:22 AM
thunder8
General Technical
0
01 October 2015 09:13 PM
Raptorman
ScoobyNet General
0
01 October 2015 06:46 PM



Quick Reply: Excel formula for counting up odd / even numbers?



All times are GMT +1. The time now is 01:49 AM.