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 Dec 17, 2002 | 12:37 PM
  #1  
Cat42's Avatar
Cat42
Thread Starter
Scooby Regular
 
Joined: Jul 2002
Posts: 130
Likes: 0
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.
Reply
Old Dec 17, 2002 | 12:43 PM
  #2  
Fosters's Avatar
Fosters
Scooby Regular
 
Joined: Jul 2000
Posts: 2,145
Likes: 0
From: Islington
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)
Reply
Old Dec 17, 2002 | 12:53 PM
  #3  
Cat42's Avatar
Cat42
Thread Starter
Scooby Regular
 
Joined: Jul 2002
Posts: 130
Likes: 0
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.
Reply
Old Dec 17, 2002 | 12:59 PM
  #4  
Fosters's Avatar
Fosters
Scooby Regular
 
Joined: Jul 2000
Posts: 2,145
Likes: 0
From: Islington
Post

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




All times are GMT +1. The time now is 03:26 AM.