excel question.

Discussion in 'Windows Desktop Systems' started by cam, Jul 6, 2003.

  1. cam

    cam Guest

    im attempting to make a spreadsheet for end-of-day cash verification.. attached is a word document screen shot.

    the trouble im running into is that I have cells A22:A30 = cells A8:A16.. if there is a blank, it populates a 0.. i would rather it populate nothing at all.

    Any way to correct this?

    Thanks!

    Cam

    // http://cam.deflected.org/doc.doc
     
  2. Waldo

    Waldo Guest

    use this in A22 and then copy it to A9, A10, etc.: =IF(A8><0,A8+0,"")
    The 2 sets of quotation marks tell it to leave the cell blank in case of a zero and the >< will give you the correct value if the number happens to be negative.

    If you want the easy way out, go to "Tools", "Options", "View", and uncheck "Zero Values".
     
  3. Henyman

    Henyman Secret Goat Fetish Political User

    or use the IF funtion:

    PHP:
    =IF(A2="","",A2)
    this will leave the cell blank if the outher cell is bank (in this case A2) so put that in any cell + if A2 = blank then the cell the formular is in will be blank. If A2 has data in it then the cell with the formula in in will have that data as well.
     
  4. Henyman

    Henyman Secret Goat Fetish Political User

    in your example for cells A22-A30 use:


    PHP:
    =IF(A22="","",A8)
    =IF(
    A23="","",A9)
    =IF(
    A24="","",A10)
    =IF(
    A25="","",A11)
    =IF(
    A26="","",A12)
    =IF(
    A27="","",A13)
    =IF(
    A28="","",A14)
    =IF(
    A29="","",A15)
    =IF(
    A30="","",A16)
    That should work fine:cool:
     
  5. cam

    cam Guest

    none of those worked.. except for no zero values bit.. im uploading the file itself to my webspace.. take a look at it, maybe im doing something wrong.

    i want a22:a30 to feed directly from a8:a16 and not show zeros if its blank.

    excel sheet
     
  6. Henyman

    Henyman Secret Goat Fetish Political User

    my way should have worked....give me 5 mins + i'll do it ;)
     
  7. cam

    cam Guest

    ahaha :)

    thanks chief! you'll have to give me some slack though, in the UK its noon, over here its 7 am.
     
  8. Henyman

    Henyman Secret Goat Fetish Political User

    ooooops i made an error :blush:

    it should be:

    =IF(A8="","",A8)

    will change sheet + atach it in a mo :D
     
  9. cam

    cam Guest

    thx mate
     
  10. cam

    cam Guest

    plugged it in myself. works great.

    thanks a buncha
     
  11. Henyman

    Henyman Secret Goat Fetish Political User

    done :cool:

    i can change it so that it doesn't show $0.00 as well;)
     
  12. cam

    cam Guest

    well if its the same type of code ill have no problems.

    thanks again
     
  13. Henyman

    Henyman Secret Goat Fetish Political User

    no probs m8 :D