Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default more than one condition for "if"

Can anyone see where I am going wrong? It picks up the first 2 conditions,
but then doesn't get the last 3. I need

1-99 = p5*1.00
100-149, p5*2.50
150-249, p5*2.75
250-300,p5*3
301+, p5*3.25
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default more than one condition for "if"

Hi,

You don't provide too much information so here's a guess.

Create a table somewhere that looks like this
1 1.00
100 2.50
150 2.75
250 3.00
301 3.25
In this example it's in A1 to B5
try this formula
=P5*VLOOKUP(P5,A1:B5,2,TRUE)

Note that column A of the table must be sorted as in the example.

Mike

"TrixieA" wrote:

Can anyone see where I am going wrong? It picks up the first 2 conditions,
but then doesn't get the last 3. I need

1-99 = p5*1.00
100-149, p5*2.50
150-249, p5*2.75
250-300,p5*3
301+, p5*3.25

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default more than one condition for "if"

I used the Vlookup, it did work. Thank you
Trixie.

"Mike H" wrote:

Hi,

You don't provide too much information so here's a guess.

Create a table somewhere that looks like this
1 1.00
100 2.50
150 2.75
250 3.00
301 3.25
In this example it's in A1 to B5
try this formula
=P5*VLOOKUP(P5,A1:B5,2,TRUE)

Note that column A of the table must be sorted as in the example.

Mike

"TrixieA" wrote:

Can anyone see where I am going wrong? It picks up the first 2 conditions,
but then doesn't get the last 3. I need

1-99 = p5*1.00
100-149, p5*2.50
150-249, p5*2.75
250-300,p5*3
301+, p5*3.25

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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
"countif" and "and" condition laingram Excel Worksheet Functions 2 June 28th 07 03:34 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
In excel counting cells in a range which meet condition "Xand<X" Uncivil Servant Excel Worksheet Functions 1 May 19th 06 02:37 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


All times are GMT +1. The time now is 03:04 AM.

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"