Excel 2002

  • Thread starter Thread starter John
  • Start date Start date
J

John

I am trying to create 2 formulas,

I can get this part to work =IF(Q:Q<=5000,Q:Q*I:I,I:I*5000)

but I can't phrase the first part so excel can understand what I am trying
to accomplish. This first condition (=If I:I is < than or > than but not =
to 1) must be met before going any further.

1st formula:
IF I:I is < than or > than but not = to 1, then IF(Q:Q<=5000,Q:Q*I:I,I:I*5000)

2nd formula:
IF I:I is not < or > but = to 1, then IF(Q:Q<=5000,Q:Q*I:I,I:I*5000)
 
I'm not sure I understand what you're trying to do. Do you want to add the
products of I and Q when I is not equal to 1?

Maybe this is what you want:

=SUM(IF(I1:I99<>1,MIN(5000,Q1:Q99)*I1:I99))

This is an array formula. It must be committed with CTRL-SHIFT-ENTER
instead of just enter. If done properly, the formula should be enclosed with
{ }.

HTH
Elkar
 
Elkar'

I'll try to explain what I am trying to do.

I am making a spreadsheet for a sliding scale tax
column "I" contains the surtax rate which is usually 1 %
column "Q" will contain an amount less than, equal to, or greater than 5000
column "Z" will return the result
example:
"I" = 1%, Q= 4000, "Z" = 40
"I" = 1%, Q= 5000, "Z" = 50
"I" = 1%, Q= 6000, "Z" = 50

As you can see "Z" can never be more than 50 @ 1% with this formula
=IF(Q:Q<=5000,Q:Q*I:I,I:I*5000) so this part works fine.

Now what I am trying to do is this:

I want the result to show up in column "Z" if column "I" is less than or
greater than 1%
But I want the result to show up in column "AC" if column "I" is equal to 1%
The result could show up in only one column at a time

"I" = 1%, Q= 4000, "Z" = 40
"I" = 1%, Q= 5000, "Z" = 50
"I" = 1%, Q= 6000, "Z" = 50
"I" = .5%, Q= 4000, AC" = 20
"I" = .5%, Q= 5000, AC " = 25
"I" = .5%, Q= 6000, AC" = 25
"I" = 1.5%, Q= 4000, AC" = 60
"I" = 1.5%, Q= 5000, AC" = 75
"I" = 1.5%, Q= 6000, AC" = 75
 
"smartin"

I'll try to explain what I am trying to do.

I am making a spreadsheet for a sliding scale tax
column "I" contains the surtax rate which is usually 1 %
column "Q" will contain an amount less than, equal to, or greater than 5000
column "Z" will return the result
example:
"I" = 1%, Q= 4000, "Z" = 40
"I" = 1%, Q= 5000, "Z" = 50
"I" = 1%, Q= 6000, "Z" = 50

As you can see "Z" can never be more than 50 @ 1% with this formula
=IF(Q:Q<=5000,Q:Q*I:I,I:I*5000) so this part works fine.

Now what I am trying to do is this:

I want the result to show up in column "Z" if column "I" is less than or
greater than 1%
But I want the result to show up in column "AC" if column "I" is equal to 1%
The result could show up in only one column at a time

"I" = 1%, Q= 4000, "Z" = 40
"I" = 1%, Q= 5000, "Z" = 50
"I" = 1%, Q= 6000, "Z" = 50
"I" = .5%, Q= 4000, AC" = 20
"I" = .5%, Q= 5000, AC " = 25
"I" = .5%, Q= 6000, AC" = 25
"I" = 1.5%, Q= 4000, AC" = 60
"I" = 1.5%, Q= 5000, AC" = 75
"I" = 1.5%, Q= 6000, AC" = 75
 
"smartin"

I'll try to explain what I am trying to do.

I am making a spreadsheet for a sliding scale tax
column "I" contains the surtax rate which is usually 1 %
column "Q" will contain an amount less than, equal to, or greater than 5000
column "Z" will return the result
example:
"I" = 1%, Q= 4000, "Z" = 40
"I" = 1%, Q= 5000, "Z" = 50
"I" = 1%, Q= 6000, "Z" = 50

As you can see "Z" can never be more than 50 @ 1% with this formula
=IF(Q:Q<=5000,Q:Q*I:I,I:I*5000) so this part works fine.

Now what I am trying to do is this:

I want the result to show up in column "Z" if column "I" is less than or
greater than 1%
But I want the result to show up in column "AC" if column "I" is equal to 1%
The result could show up in only one column at a time

"I" = 1%, Q= 4000, "Z" = 40
"I" = 1%, Q= 5000, "Z" = 50
"I" = 1%, Q= 6000, "Z" = 50
"I" = .5%, Q= 4000, AC" = 20
"I" = .5%, Q= 5000, AC " = 25
"I" = .5%, Q= 6000, AC" = 25
"I" = 1.5%, Q= 4000, AC" = 60
"I" = 1.5%, Q= 5000, AC" = 75
"I" = 1.5%, Q= 6000, AC" = 75

Your description and your example are not the same.

In your description, you want the result in col Z if col I is not equal to 1%;
whereas in your example you have it the other way.

In any event, for the column where you want the result when I = 1%, assuming
your data begins in Row 1 (adjust the formula as necessary):

=IF(I1=1%,I1*MIN(Q1,5000),"")

Fill down as far as required.

For the column where you want the result when Col I is greater than or less
than 1%:

=IF(I1<>1%,I1*MIN(Q1,5000),"")

--ron
 
smartin,

Thanks a lot. your second example works, can't beleive it was that simple.
I had tried that but with the exception of I had "1" where you have ".01"
that made all the difference. It appeared that excel couldn't recognize <> or
= to "1" I guess it interpreted "1" as "100"
It was pointed out to me that I had reversed my example IE: results for "z"
/ "AC" columns but you figured it out anyway, "Good Job" I appreciate the
help, I had exhausted my trial and error possibilities. I am curious why the
"" at the end of the formula?
 
smartin,

I have another question you may be able to help with.

I am trying to get the result from this formula to round,
=IF(Q:Q<=5000,Q:Q*0.06+Q:Q*I:I,Q:Q*0.06+5000*I:I)
No matter how I insert round I get an error??

Thanks for the tip on"N/A" I was trying to get a cell to have "N/A" as a
result just the other day.
 
Check your other post.
smartin,

I have another question you may be able to help with.

I am trying to get the result from this formula to round,
=IF(Q:Q<=5000,Q:Q*0.06+Q:Q*I:I,Q:Q*0.06+5000*I:I)
No matter how I insert round I get an error??

Thanks for the tip on"N/A" I was trying to get a cell to have "N/A" as a
result just the other day.
 
smartin said:
You're welcome!

For rounding, just wrap the whole IF, thus:

=ROUND(IF(Q:Q<=5000,Q:Q*0.06+Q:Q*I:I,Q:Q*0.06+5000*I:I),0)
A Chap named Dave got me sorted out already on the "round" thing.
But , Thanks again anyway, do appreciate the help.
 

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

Similar Threads

excell 2002 round 2
Excel 2002 IF 1
Search string with multiple criteria 2
Windows XP Formula not calculating in correct order - please help 0
Macro substitution 1
loop help 6
SumProduct 7
Countif for dddd format 4

Back
Top