Fun With That Wages Book Again

G

Gatsby

G H
450.00 450.00 (G9)
425.00 875.00 (G10+H9)
430.00 1320.00 (G11+H10)
422.00 1742.00 (G12+H11)
1742.00
1742.00
I have to type in the formula in H each time I make an entry in G in order
to get H to complete. If I drag the auto complete down it fills in the last
entry all down the column, which I don't want to happen. Why doesn't excel
recognise what I'm at and just fill in column H for me? Although the above
example only shows four entries, it's the same after seven. The Autocomplete
box is ticked.
Help anyone? - Gatsby
 
G

Gatsby

Thanks for answering Gord.
Automatic is ticked and this still is happening. It seems to be only when
I'm doing accumulating that this problem arises. Any other ideas on how to
solve it? I'd appreciate it.
Gatsby
 
K

kassie

Change your formula to read =IF(G12="","",H11+G12), and drag all the way
down. This way, H will remain blank until G gets a value. In your scenario,
H12 will show a value, but H13 will remain blank until you enter a value in
G13
 
G

Gatsby

Kassie, that's working! Thanks very much for helping me. I've spent hours
trying to get around it, wondering what was wrong? Have you any idea why 'my
way' doesn't work? Thanks again.
Gatsby
 
K

kassie

That's a pleasure Gatsby! 'Your way' doen't work because something plus
nothing is still something!
 
G

Gatsby

I see now, Kassie. Thanks again. The formula you gave me has made entering
the wages so much easier. When I looked up Conditional Formatting they seemed
to be referring to how to change colours depending on values. They should
have written pages especially for ME. (HeHe).
Gatsby
 
Y

Yacbo

To be honest, I'm kind of new to this forum and just learning my way around.
Kassie has apparently been most helpful to you as has Gord. These guys are
vastly superior to my humble abilities and perhaps one of them will weigh in
and answer your question. For my part, I don't quite understand the current
question, but stand willing to help in any way possible. To that end, I have
two suggestions: First, do another post being more specific as to what the
input and output are and why the formulas are not working. And two, you
might submit your post to the category of Excel>"Worksheet Functions" in
addition to this room. Please don't consider this latter suggestion as
diversionary-- I just think you might be depriving yourself of a valuable
resource in the folks that regularly help over in the "Worksheet Functions"
room in which I have gained many helpful tips. I would like to stress that
the people who offer help in all these communities are top notch. I feel
guilty that I help so little and gain so much from people like Kassie, Gord,
and many others! Thanks to all.
 
R

Roger Govier

Hi Gatsby
=IF(G9<=300,0,IF(G9<=440,(G9-127)*0.04)),(2.54+(G9-127)*0.06)))
has too many parentheses in the formula
Try
=IF(G9<=300,0,IF(G9<=440,(G9-127)*0.04,2.54+(G9-127)*0.06))

To combine your other formulae, try
=IF(G9<=300,"AO",IF(G9<=356,"AX",IF(G9<=440,"AL","A1")))
 
Y

Yacbo

Sure, you can switch ((G9-127)*0.04) with (0.04*(G9-127)) and mathematically,
it makes no difference, which begs the question why do it? But you can’t
switch ((G9-127)*0.04) with (G9-127)*0.04)) which is what you have done.
Actually, due to the order of math, you could leave out the outer parenthesis
in my formula and just type (G9-127)*0.04 or 0.04*(G9-127) instead and it
wouldn’t matter. I just include additional parenthesis to make it neater.
Your error is coming from the improper placement of the parenthesis.

But let’s make this easier by using helper columns. Below, I start with a
raw number in cell G9. For the other cells (H9-K9), the computed number is
shown and the formula that got us there is listed below.

600 0 18.92 30.92 28.38
(raw) (1) (2) (3) (4)

Formulas:

(1) =0*G9
(2) =(G9-127) * 0.04
(3) =127*0.02 + (G9-127)*0.04
(4) =IF(G9<=300,H9,IF(G9<=440,I9,J9))

This method should also work with your SI coding. Using the helper columns
lets you see what is happening. Type these formulas into a blank Excel sheet
and then change the raw number to various samples from your range to see the
result in cell K9.
 
Y

Yacbo

Oops, last number in my example (in cell K9) should read: 30.92. Got a
little ahead of myself. Sorry.
 
G

Gatsby

Thanks, Roger. Yes that works perfectly.
I didn't reckon on when an employee is out of work in a particular week and
has no wages. the employee gets an'AO' when it should be zilch.
How can I add in: If (G9<=0,0) into the formula without getting error
messages again?
Thanks again, Roger.

Gatsby (Not The Great)
 
G

Gatsby

Thanks again, Yacbo.
It took me a while to work out what you were at in this one.
I think there is a typo and you mean 0.06 in I9, not 0.04.
Anyway I see what you mean.
Thanks for explaining it. What's the significance of double and even treble
parentheses?
Gatsby (Not The Great)
 
G

Gatsby

That's great, Roger. I'm noting the 4 end parenteses.
Thanks very much for your help and reply. It is appreciated.

Gatsby (Not The Great)
 
Y

Yacbo

Yea, you got me on the typo. Sorry.

As for the parenthesis, sometimes they are necessary and sometimes not. For
instance, the expression A + B * C gives the exact same result as A + (B * C)
and the parenthesis are superfluous. But they do serve the purpose of
allowing me to follow what I am trying to accomplish. For example, a change
of the placement of the parenthesis to (A + B) * C produces an entirely
different result. In this case, the parenthesis are important because I’m
telling Excel to add A to B first and then multiply by C, which it would not
normally do. This is in stark contrast to the first example in which I am
telling Excel to multiply B and C and then add the product to A which is what
Excel would normally do with or without the parenthesis. In both examples, I
am telling Excel explicitly what I want done without relying on its rules of
math order. As long as you are well versed in mathematical protocol, you may
feel free to forgo the extra parenthesis, but do be careful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top