# excel question.

C

#### 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

W

#### 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".

#### 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.

#### 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

C

#### 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

#### Henyman

##### Secret Goat Fetish
Political User
my way should have worked....give me 5 mins + i'll do it

C

#### cam

##### Guest
ahaha

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

#### 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

C

#### cam

##### Guest
plugged it in myself. works great.

thanks a buncha

#### Henyman

##### Secret Goat Fetish
Political User
done

i can change it so that it doesn't show \$0.00 as well

C

#### cam

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

thanks again

Political User
no probs m8

### Members online

No members online now.

### Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
What a long strange trip it's been. =)
lurking
Holla