corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » IF Statements on Excel


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author IF Statements on Excel
Rachel H
Member

Registered: 12th Nov 03
Location: Berks
User status: Offline
1st May 07 at 11:05   View User's Profile U2U Member Reply With Quote

Got 13 columms across and 13 rows down with a series of dates in and if there aren't any dates in the cells then it shows Empty.

Now I have a total columm at the end and I need to know how many how many cells per row have dates in and how many have Empty in.

How would I go about this?
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
1st May 07 at 11:07   View Garage View User's Profile U2U Member Reply With Quote

if cellnumber <> ""

and

if cellnumber = ""

?
Rachel H
Member

Registered: 12th Nov 03
Location: Berks
User status: Offline
1st May 07 at 11:18   View User's Profile U2U Member Reply With Quote

Doesn't make sense Steve?
blebo
Member

Registered: 18th Apr 02
User status: Offline
1st May 07 at 11:39   View User's Profile U2U Member Reply With Quote

=countif(A1:A13,"<>""")

A1:A13 is the collum of dates

<>"" will only work if the cell is blank will need to be changed if you have the cell set to display empty etc.
Rachel H
Member

Registered: 12th Nov 03
Location: Berks
User status: Offline
1st May 07 at 11:57   View User's Profile U2U Member Reply With Quote

That works but only returns a 0, the fact that the range has a forumla already in it that cannot be removed doesn't seem to effect it either.
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
1st May 07 at 12:30   View Garage View User's Profile U2U Member Reply With Quote

my examples were in simple psuedo code, made perfect sense
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
1st May 07 at 14:23   View Garage View User's Profile U2U Member Reply With Quote

If they're actually empty, use COUNTBLANK()

If they're the word 'Empty', use

=COUNTIF(A1:A13,"Empty")

Then use 13 minus that cell to tell you the opposite.

[Edited on 01-05-2007 by Ian]
Rachel H
Member

Registered: 12th Nov 03
Location: Berks
User status: Offline
1st May 07 at 15:18   View User's Profile U2U Member Reply With Quote

I sussed it myself and done it exactly the way you said Ian.

To count the Emptys I done

=COUNTIF(D$5: D$17,"Empty")

To count the dates I used

=COUNT(D5: D17)

[Edited on 01-05-2007 by Rachel H]
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
1st May 07 at 15:40   View Garage View User's Profile U2U Member Reply With Quote

did it exactly,,,watch that grammar boy
Rachel H
Member

Registered: 12th Nov 03
Location: Berks
User status: Offline
2nd May 07 at 10:45   View User's Profile U2U Member Reply With Quote

What your mouth otherwise you will find yourself fished hooked like McGloin.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Help needed again ...Trotty can you help Red_Corsa Geek Day 17 1611
21st Mar 03 at 00:15
by Red_Corsa
 
Any MS Excel experts Steve Geek Day 11 1233
4th Jun 04 at 14:19
by blebo
 
is there a program that...... chris_uk Geek Day 6 1833
16th Jun 05 at 00:47
by Dan B
 
Excel Help please !!! Mase Geek Day 2 713
16th Nov 05 at 11:27
by Mase
 
Excel help and making my life easier Melville Geek Day 9 923
26th Oct 06 at 14:17
by Melville
 

Corsa Sport » Message Board » Off Day » Geek Day » IF Statements on Excel 28 database queries in 0.0106230 seconds