Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GUS GUS is offline
external usenet poster
 
Posts: 45
Default lockup value

I want a formula to give value at column c
if the value in cell a1 is between a value in column a-b

columb A column b column c
0 to 5.000.000 100.000
5.000.001 to 20.000.000 200.000
20.000.001 to 50.000.000 300.000
50.000.001 to 75.000.000 400.000
75.000.001 to 100.000.000 500.000

foe example if a1 = 24.000.000 then cell b1= 300.000


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default lockup value

One way:

Assuming your table starts in row 5:

=VLOOKUP(A1, A5:C9, 3, TRUE)

In article ,
"gus" wrote:

I want a formula to give value at column c
if the value in cell a1 is between a value in column a-b

columb A column b column c
0 to 5.000.000 100.000
5.000.001 to 20.000.000 200.000
20.000.001 to 50.000.000 300.000
50.000.001 to 75.000.000 400.000
75.000.001 to 100.000.000 500.000

foe example if a1 = 24.000.000 then cell b1= 300.000


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default lockup value

you can do this sort of thing with vlookup.

Column A ColumnB
0 100
5,000,001 200
20,000,001 300
50,000,001 400
75,000,001 500

the formula would be:
=vlookup(SOMECELL, $a$1:$b$5,2)

where SOMECELL is replaced with the cell address containing the value you
want to test.

-Brian




gus wrote in message ...
I want a formula to give value at column c
if the value in cell a1 is between a value in column a-b

columb A column b column c
0 to 5.000.000 100.000
5.000.001 to 20.000.000 200.000
20.000.001 to 50.000.000 300.000
50.000.001 to 75.000.000 400.000
75.000.001 to 100.000.000 500.000

foe example if a1 = 24.000.000 then cell b1= 300.000




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
Cell Selection Lockup T. Jenkins Excel Discussion (Misc queries) 6 January 30th 08 07:17 PM
Lockup when Moving Chart to a new worksheet Ski Charts and Charting in Excel 0 May 27th 06 03:51 PM
Lockup in Office TD Excel Discussion (Misc queries) 0 April 20th 06 07:34 PM
How do i lockup a locked excelfile if i have forgot the password? Halil Excel Discussion (Misc queries) 3 September 14th 05 03:43 PM


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