+ Reply to Thread
Results 1 to 7 of 7

IF function advise

  1. #1
    Registered User
    Join Date
    10-12-2007
    Posts
    5

    IF function advise

    I have a time sheet spread with multiple rows that return zero alot of the time but the zero's create a visual problem when reading, I'd like to have the cell return nothing if there is not a sum for the week, is this possible. I have did the IF function but only get the blank field and don't know how to have it return the sum IF there are totals in the row?

    THANKS in advance
    Kathy

  2. #2
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149
    I think this is what you want?
    =IF(SUMIF(Range,Criteria)>0,SUMIF(Range, Criteria),"")

    However, sometimes having a 0 value is useful when you need to work with the number later on. In that case, you can always set a conditional formula that turns all 0 to a white font.

  3. #3
    Registered User
    Join Date
    10-12-2007
    Posts
    5

    Criteria

    Okay... I know what the 'range' is but then the ,criteria confuses me... what do I put there in each case?
    sorry to sound so clueless...
    Kathy

  4. #4
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149
    the SUMIF function has 2 part:

    Range - the range of cells that you want to evaluate

    Criteria - is the criteria in the form of a number, expression, or text that defines which cells will be added. For example, criteria can be expressed as 32, "32", ">32", "apples".

    If you still want more explaination, feel free to post your worksheet and I will help you out.

  5. #5
    Registered User
    Join Date
    10-12-2007
    Posts
    5
    this may not line up right.. but hopefully you can get the idea... all those '0's need to be BLANK UNLESS there is a number greater than 0 for the row, does that make sense? YOU ARE A LIFE SAVER
    PAY PAY TOTAL SAT SUN MON TUE WED THUR FRI
    CODE TYPE HOURS
    WORKED REGULAR 0
    WORKED REGULAR 40 8 8 8 8 8
    WORKED REGULAR 0
    WORKED REGULAR 0
    WORKED REGULAR 0
    WORKED REGULAR 0
    WORKED REGULAR 0
    REGULAR 0
    OVERTIME 0
    OVERTIME 0
    OVERTIME 0
    OVERTIME 0
    OVERTIME 0
    OVERTIME 0
    OVERTIME 0
    VACATION 0
    SICK 0
    HOLIDAY 0
    COMP 0

  6. #6
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149
    Assuming the summing field for each row is from column 4 to column 100

    - assuming your first row of calculation is in row B
    - for the 1st row
    =if(sum($B4:$B100)<=0,"",sum($B4:$B100))

    fill down

  7. #7
    Registered User
    Join Date
    10-12-2007
    Posts
    5

    Thank You Soooooo Much

    Thanks alot... that formula worked leaving out the $ signs... don't know what they were suppose to do but it didn't work with them there so I try taken them out and it worked.
    Time sheets had to be done today so you were a life saver... THANKS so much for your help...

    Forums like these are life-savers for us that know enough to make us dangerous....

    AGAIN, THANKS .
    Kathy Fakes

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1