Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default IF formula for 3 possible conditions

I'm trying to setup a formula as follows:

If the value referenced is between 1 and 200, it will add 16 to itself; if
it is between 201-1000, it will multiply itself by 108%; if it is 1001 or
greater it will add 80 to itself.

I originally set it up as:
=IF(V7<201,V7+16)+IF(V7=201,1000,V7*108%)+IF(V710 00,V7+80)
but this formula only works for the middle condition (values between 201 and
1000).

I'm going crazy, what am I doing wrong?

Thanks in advance for any guidance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default IF formula for 3 possible conditions

On Wed, 27 Dec 2006 15:07:02 -0800, cbgraphics
wrote:

I'm trying to setup a formula as follows:

If the value referenced is between 1 and 200, it will add 16 to itself; if
it is between 201-1000, it will multiply itself by 108%; if it is 1001 or
greater it will add 80 to itself.

I originally set it up as:
=IF(V7<201,V7+16)+IF(V7=201,1000,V7*108%)+IF(V71 000,V7+80)
but this formula only works for the middle condition (values between 201 and
1000).

I'm going crazy, what am I doing wrong?


You don't add If formulas to work out alternatives, you use the True
or False arguents. These can be "nested" up to 7 levels so that if the
first test (<201) fails, you try the If function in the False argument
and so on.

I think this is what you're after; it should be fairly self
explanatory:

=IF(AND(V7=1,
V7<=200),V7+16,IF(AND(V7=201,V7<=1000),V7*108%,IF (V7=1001,V7+80,"Undefined")))

I've added the And functions to show the range that each formula
applies to.

---------------------------------------------------------
Hank Scorpio
scorpionet who hates spam is at iprimus.com.au (You know what to do.)
* Please keep all replies in this Newsgroup. Thanks! *
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default IF formula for 3 possible conditions

Perfect, thanks for your help.

"Hank Scorpio" wrote:

On Wed, 27 Dec 2006 15:07:02 -0800, cbgraphics
wrote:

I'm trying to setup a formula as follows:

If the value referenced is between 1 and 200, it will add 16 to itself; if
it is between 201-1000, it will multiply itself by 108%; if it is 1001 or
greater it will add 80 to itself.

I originally set it up as:
=IF(V7<201,V7+16)+IF(V7=201,1000,V7*108%)+IF(V71 000,V7+80)
but this formula only works for the middle condition (values between 201 and
1000).

I'm going crazy, what am I doing wrong?


You don't add If formulas to work out alternatives, you use the True
or False arguents. These can be "nested" up to 7 levels so that if the
first test (<201) fails, you try the If function in the False argument
and so on.

I think this is what you're after; it should be fairly self
explanatory:

=IF(AND(V7=1,
V7<=200),V7+16,IF(AND(V7=201,V7<=1000),V7*108%,IF (V7=1001,V7+80,"Undefined")))

I've added the And functions to show the range that each formula
applies to.

---------------------------------------------------------
Hank Scorpio
scorpionet who hates spam is at iprimus.com.au (You know what to do.)
* Please keep all replies in this Newsgroup. Thanks! *

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default IF formula for 3 possible conditions

Hi

Here's a shorter version:

=IF(V71000,V7+80,IF(V7200,V7*108%,IF(V70,V7+16, 0)))

Cheers
Jean-Guy

"cbgraphics" wrote:

Perfect, thanks for your help.

"Hank Scorpio" wrote:

On Wed, 27 Dec 2006 15:07:02 -0800, cbgraphics
wrote:

I'm trying to setup a formula as follows:

If the value referenced is between 1 and 200, it will add 16 to itself; if
it is between 201-1000, it will multiply itself by 108%; if it is 1001 or
greater it will add 80 to itself.

I originally set it up as:
=IF(V7<201,V7+16)+IF(V7=201,1000,V7*108%)+IF(V71 000,V7+80)
but this formula only works for the middle condition (values between 201 and
1000).

I'm going crazy, what am I doing wrong?


You don't add If formulas to work out alternatives, you use the True
or False arguents. These can be "nested" up to 7 levels so that if the
first test (<201) fails, you try the If function in the False argument
and so on.

I think this is what you're after; it should be fairly self
explanatory:

=IF(AND(V7=1,
V7<=200),V7+16,IF(AND(V7=201,V7<=1000),V7*108%,IF (V7=1001,V7+80,"Undefined")))

I've added the And functions to show the range that each formula
applies to.

---------------------------------------------------------
Hank Scorpio
scorpionet who hates spam is at iprimus.com.au (You know what to do.)
* Please keep all replies in this Newsgroup. Thanks! *

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default IF formula for 3 possible conditions

Excellent, thanks!

"pinmaster" wrote:

Hi

Here's a shorter version:

=IF(V71000,V7+80,IF(V7200,V7*108%,IF(V70,V7+16, 0)))

Cheers
Jean-Guy

"cbgraphics" wrote:

Perfect, thanks for your help.

"Hank Scorpio" wrote:

On Wed, 27 Dec 2006 15:07:02 -0800, cbgraphics
wrote:

I'm trying to setup a formula as follows:

If the value referenced is between 1 and 200, it will add 16 to itself; if
it is between 201-1000, it will multiply itself by 108%; if it is 1001 or
greater it will add 80 to itself.

I originally set it up as:
=IF(V7<201,V7+16)+IF(V7=201,1000,V7*108%)+IF(V71 000,V7+80)
but this formula only works for the middle condition (values between 201 and
1000).

I'm going crazy, what am I doing wrong?

You don't add If formulas to work out alternatives, you use the True
or False arguents. These can be "nested" up to 7 levels so that if the
first test (<201) fails, you try the If function in the False argument
and so on.

I think this is what you're after; it should be fairly self
explanatory:

=IF(AND(V7=1,
V7<=200),V7+16,IF(AND(V7=201,V7<=1000),V7*108%,IF (V7=1001,V7+80,"Undefined")))

I've added the And functions to show the range that each formula
applies to.

---------------------------------------------------------
Hank Scorpio
scorpionet who hates spam is at iprimus.com.au (You know what to do.)
* Please keep all replies in this Newsgroup. Thanks! *



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 136
Default IF formula for 3 possible conditions

Hello,

Another approach:
=CHOOSE((V71000)+(V7200)+(V70),V7+16,V7*1.08,V7 +80)

Regards,
Bernd

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default IF formula for 3 possible conditions

Thank you as well!

" wrote:

Hello,

Another approach:
=CHOOSE((V71000)+(V7200)+(V70),V7+16,V7*1.08,V7 +80)

Regards,
Bernd


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
Multiple conditions in a formula TV Excel Worksheet Functions 3 April 12th 06 08:32 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM
Help for a formula using two conditions harwookf Excel Worksheet Functions 7 November 24th 04 08:21 AM


All times are GMT +1. The time now is 04:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"