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 range calculation help

I am not sure if I can do this in excel, but here is what I am trying to do.

If have several value ranges (i.e 0-50, 51-100,
101-500,501-1000,1001-2000,2001-3000,3001-10000). I want to have excel check
a value (1) to determine if it falls between these ranges, and if it does,
return another number defined (2), and multiply the orig. number by the
number provided (i.e 1X2).

Example: A1:0, A2:51 A3:101 A4:501 A5:1001 A6:2001 A7:3001
B1:50 B2:100 B3:500 B4:1000 B5:2000 B6:3000 B7:10000
C1:5.6 C2:4.2 C3:4.05 C4:3.85 C5:3.70 C6:3.50 C7:3.15
F1:356
I want to check what F1 is between (i.e. 356 is between A3 and B3), and
return the number below the columns (i.e. C3 (4.05)), and then multiply F1 by
that cell(c3)

again not sure if this can be done, but any assistance would be appreciated.

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default range calculation help

See if this works for you:

=IF(AND(F1=$A$1,F1<=$B$7,F1<""),VLOOKUP(F1,$A$1: $C$7,3)*F1,"Out of Range")

HTH,
Elkar


"Mike Daniels" wrote:

I am not sure if I can do this in excel, but here is what I am trying to do.

If have several value ranges (i.e 0-50, 51-100,
101-500,501-1000,1001-2000,2001-3000,3001-10000). I want to have excel check
a value (1) to determine if it falls between these ranges, and if it does,
return another number defined (2), and multiply the orig. number by the
number provided (i.e 1X2).

Example: A1:0, A2:51 A3:101 A4:501 A5:1001 A6:2001 A7:3001
B1:50 B2:100 B3:500 B4:1000 B5:2000 B6:3000 B7:10000
C1:5.6 C2:4.2 C3:4.05 C4:3.85 C5:3.70 C6:3.50 C7:3.15
F1:356
I want to check what F1 is between (i.e. 356 is between A3 and B3), and
return the number below the columns (i.e. C3 (4.05)), and then multiply F1 by
that cell(c3)

again not sure if this can be done, but any assistance would be appreciated.

Thanks,

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
Excel Addin:Setting the range to the Excel.Range object range prop Rp007 Excel Worksheet Functions 5 November 24th 06 04:30 PM
OFFSET and range addresses chemist Excel Discussion (Misc queries) 1 October 23rd 06 11:47 PM
Range name problems Andrea Jones Excel Discussion (Misc queries) 1 October 18th 06 01:36 AM
VLookup Error in Part of a Named Range Dallas64 Excel Worksheet Functions 6 April 18th 06 02:13 PM
Array to named range conversion... i-Zapp Excel Discussion (Misc queries) 4 October 25th 05 09:09 PM


All times are GMT +1. The time now is 01:57 AM.

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"