Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default excel help please. Urgent!!

Please help, im trying to get excel to return a number if the amount entered falls between 2 set amounts. Example below.

?1-?1000 3 Days
?1001-?2500 5 Days
?2501-?5000 10 Days
?5001-?9999 20 Days
?10,000 + 30 Days

So if an amount is entered, say ?4500 it would return 10 Days.

I managed to get a formula kind of working but it doesnt seem to work all the time.

=IF(A210000,"30 Days",IF(A25000,"20 Days",IF(A22500,"10 Days",IF(A21000,"5 Days"))))

Can someone please help as this is quite urgent.

thanks

Lee


EggHeadCafe - Software Developer Portal of Choice
EBCDIC Encoding with .NET
http://www.eggheadcafe.com/tutorials...-with-net.aspx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default excel help please. Urgent!!

Try this Vlookup formula.

=VLOOKUP(E1,B1:C5,2,2)

Whe
E1 contains the value to lookup, (1 to over 10,000)
B1:B5 contains 1, 1000, 2500, 5000, 9999.
C1:C5 contains 3, 5, 10, 20, 30, (number of days)

HTH
Regards,
Howard

<lee bexton wrote in message ...
Please help, im trying to get excel to return a number if the amount
entered falls between 2 set amounts. Example below.

?1-?1000 3 Days
?1001-?2500 5 Days
?2501-?5000 10 Days
?5001-?9999 20 Days
?10,000 + 30 Days

So if an amount is entered, say ?4500 it would return 10 Days.

I managed to get a formula kind of working but it doesnt seem to work all
the time.

=IF(A210000,"30 Days",IF(A25000,"20 Days",IF(A22500,"10
Days",IF(A21000,"5 Days"))))

Can someone please help as this is quite urgent.

thanks

Lee


EggHeadCafe - Software Developer Portal of Choice
EBCDIC Encoding with .NET
http://www.eggheadcafe.com/tutorials...-with-net.aspx



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default excel help please. Urgent!!

Try something like:

=IF(A20,LOOKUP(A2,{1,1001,2501,5001,10000},{3,5,1 0,20,30}),"")

lee bexton wrote:
Please help, im trying to get excel to return a number if the amount entered falls between 2 set amounts. Example below.

?1-?1000 3 Days
?1001-?2500 5 Days
?2501-?5000 10 Days
?5001-?9999 20 Days
?10,000 + 30 Days

So if an amount is entered, say ?4500 it would return 10 Days.

I managed to get a formula kind of working but it doesnt seem to work all the time.

=IF(A210000,"30 Days",IF(A25000,"20 Days",IF(A22500,"10 Days",IF(A21000,"5 Days"))))

Can someone please help as this is quite urgent.

thanks

Lee


EggHeadCafe - Software Developer Portal of Choice
EBCDIC Encoding with .NET
http://www.eggheadcafe.com/tutorials...-with-net.aspx

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default excel help please. Urgent!!

Well, "it doesnt seem to work all the time" isn't a very specific problem
description. Perhaps you could tell us what value in A2 gives you what
result, and what result you expected?
You haven't included the 3 day result, so perhaps you intended:
=IF(A210000,"30 Days",IF(A25000,"20 Days",IF(A22500,"10
Days",IF(A21000,"5 Days","3 Days"))))
One cause of problems would be if the value in A2 were text instead of a
number. If you are having problems, see what you get from =ISTEXT(A2) and
=ISNUMBER(A2).
--
David Biddulph

<lee bexton wrote in message ...
Please help, im trying to get excel to return a number if the amount
entered falls between 2 set amounts. Example below.

?1-?1000 3 Days
?1001-?2500 5 Days
?2501-?5000 10 Days
?5001-?9999 20 Days
?10,000 + 30 Days

So if an amount is entered, say ?4500 it would return 10 Days.

I managed to get a formula kind of working but it doesnt seem to work all
the time.

=IF(A210000,"30 Days",IF(A25000,"20 Days",IF(A22500,"10
Days",IF(A21000,"5 Days"))))

Can someone please help as this is quite urgent.

thanks

Lee


EggHeadCafe - Software Developer Portal of Choice
EBCDIC Encoding with .NET
http://www.eggheadcafe.com/tutorials...-with-net.aspx



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
Urgent! Help needed for Excel LunaMoon Excel Discussion (Misc queries) 5 December 23rd 08 01:17 AM
IME MODE FOR EXCEL 2007 (URGENT URGENT) Stella Wong Excel Discussion (Misc queries) 1 August 23rd 08 11:16 PM
help on excel assigment! URGENT! maria Excel Discussion (Misc queries) 5 April 19th 08 12:56 AM
Excel problem - urgent infodata Excel Discussion (Misc queries) 1 May 12th 06 04:48 PM
Urgent-Urgent VBA LOOP Jeff Excel Discussion (Misc queries) 0 October 6th 05 05:46 PM


All times are GMT +1. The time now is 05:38 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"