Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

excel function for bookkeeping without clogging zero's 1

Status
Not open for further replies.

ts04

Technical User
Jun 14, 2004
69
NL
Hi there!

I use Excel 2003 (SP2) (dutch language) and would like to find a solution for the following situation:

In a financial administration I want to manually insert as less as possible, for obvious reasons ;-). I only want to insert the information from my bank receipts, like "date", "description" and "amount", and after that, manually insert per line a number, corresponding one of the book accounts (like, "sold books"). Every line should be formatted like that, without knowing how many lines I need.

The product should be (an overview of) a series of book accounts, in which only the lines are mentioned which are relevant for that book account. I don't want empty lines or clogging zero's in the book accounts.

I already tried inserting in the book account an IF-statement like

Code:
ALS('invulschema afschriften'!F4=D1;'invulschema afschriften'!D4;0)
, where
invulschema afschriften is the worksheet in which I fill in the bank receipt lines;
F4 in the bank receipt worksheet is the cell in which I inserted the book account;
D1 is the cell that contains the desired book acount number; and
D4 in the bank receipt worksheet contains the amount I need copied.

It works this far: I get the desired amounts in the right place. But it also leaves either zero's or - blanking out zero's - empty lines. And that looks really silly (quite annoying actually) in a book account.

Can anyone solve this? Is there a function that says "IF cell X CORRESPONDS WITH cell Y THEN copy cell Z to next empty row ELSE ignore" or something? Or is there a way to work around this?

Thanks in advance,
Kisses,

Tanja.
 
How can one resist when you send kisses?

Please look at this thread and see if it helps. Please don't look at the first solution I provided. I believe I was asleep when I posted that.

thread68-1250304


Me transmitte sursum, Caledoni!
 
I strongly advise against 'hiding' data by using conditional formatting to turn the text white.

It might be rare, but I have a couple of users in my office who have changed the default background color of their excel spreadsheets. White text would still be visible to them.

I'd rather use an IF statement to return an empty string, ie [COLOR=blue white]=if(and(isblank(x),isblank(y)),"",z)[/color]

IMHO, the best way to do this - if there are no breaks in the data - is with Extended Formulas. Go to Tools > Options > Edit and ensure that Extend list formats and formulas is checked. Now go to a blank workbook. Type numbers in A1:B4. In C1, type in [COLOR=blue white]=A1+B1[/color]. Drag that formula down to C4. Now type in numbers in A5 and B5.... C5 automatically populates! You must have four formulas in a row for excel to recognize that you want it to automatically fill in formulas for you.

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Hi there!

Thanks for your replies! It is not entirely, though, what I was looking for. I want (contents of) cells to be transferred to a second cell, being the bottom of a column, the column being defined by a third cell. *:)*

Hmmm, come to think of it, maybe my description of the problem (in the subject) was kinda misleading in so far, that the "clogging zero's" were only a result of some crappy solution I tried. Although I now learned how to avoid zero's instead of blanking them out, I still want to get rid of empty cells in my overview.

By the way, the automatically populating thingy does tackle the "without knowing how many lines I need" problem. Thanks for that, it's great!

Hugs,
Tanja.

PS - sorry it took so long to reply again, but I just returned from my holidays!
 
Hi, Tanja.

Sorry, don't understand this overview bit. Can you elaborate?

Me transmitte sursum, Caledoni!
 
Hi Tanja,

when you say ...
The product should be (an overview of) a series of book accounts, in which only the lines are mentioned which are relevant for that book account. I don't want empty lines or clogging zero's in the book accounts.

Wouldn't Autofilter give you exactly that?

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Glenn! You're brilliant! Thanx a million!

*hugs glenn*
 
My pleasure ... :-D

( and thanks for the hug )

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top