Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Using IF statement to evaluate Greater or Less than Conditions

Hello Folks,
I have the following Scenario:

If Inventory is < 120, write off 20%
If Inventory is 120 but less than 360, write off 50%
If Inventory is 360, write off 100%

Using a nested loop, I am trying to capture all the scenarios. Right now, I
am getting stumped on inventory between 120 and 360. Because of the way I
have it set up now, it is writing off 50% for even 360 days inventory since
the earlier condition to that says greater than 120 days.

How can I get around this situation? Any help is appreciated!

Regards,
Shams.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Using IF statement to evaluate Greater or Less than Conditions

Folks,
I think I found my simple solution. I just changed the second IF statement
to say < 360.

"Shams" wrote:

Hello Folks,
I have the following Scenario:

If Inventory is < 120, write off 20%
If Inventory is 120 but less than 360, write off 50%
If Inventory is 360, write off 100%

Using a nested loop, I am trying to capture all the scenarios. Right now, I
am getting stumped on inventory between 120 and 360. Because of the way I
have it set up now, it is writing off 50% for even 360 days inventory since
the earlier condition to that says greater than 120 days.

How can I get around this situation? Any help is appreciated!

Regards,
Shams.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Using IF statement to evaluate Greater or Less than Conditions

Create a lookup table similar to the one below
Inventory Percentage
0 20%
121 50%
361 100%

=VLOOKUP(Value to Lookup, Table_Location,Offset)

If the value is in A1 and the table is in AA1:AB3 then the VLOOKUP would be
as follows

=VLOOKUP(A1,$AA$1:$AB$3,1)

--
Kevin Backmann


"Shams" wrote:

Hello Folks,
I have the following Scenario:

If Inventory is < 120, write off 20%
If Inventory is 120 but less than 360, write off 50%
If Inventory is 360, write off 100%

Using a nested loop, I am trying to capture all the scenarios. Right now, I
am getting stumped on inventory between 120 and 360. Because of the way I
have it set up now, it is writing off 50% for even 360 days inventory since
the earlier condition to that says greater than 120 days.

How can I get around this situation? Any help is appreciated!

Regards,
Shams.

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
Greater Than/Less Than Question (IF statement?) Bill Excel Worksheet Functions 2 February 16th 08 03:28 PM
IF STATEMENT, GREATER THEN 0 ADD ANOTHER CELLS AMOUNT Karine Excel Worksheet Functions 2 November 19th 07 09:14 PM
Multiple Conditions for IF statement to evaluate Bees*Stars Excel Worksheet Functions 1 March 13th 07 10:20 PM
Multiple Conditions Using Greater Than Less Than Paperback Writer Excel Discussion (Misc queries) 3 November 30th 06 08:20 PM
"OR" operator to evaluate multiple conditions anand Excel Worksheet Functions 1 May 23rd 05 08:49 PM


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

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

About Us

"It's about Microsoft Excel"