LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
jw446
 
Posts: n/a
Default

Very helpful thanks. Curly braces are half my battle, I think. Is there any
way to replace the hard-coded values in the array with cell references?

Many thanks.

"Ron Coderre" wrote:

Try this formula:

=VLOOKUP(A1,{0,0;10,3;21,4;31,5},2,1)

Note the curly braces, the commas, and the semicolons.
The braces define an array.
The commas separate values in a row.
The semicolons are like carriage returns and begin a new row.

Effectively, the values within the braces are the equivalent of a 2 column
range of values:
_0____0
10____3
21____4
31____5

Does that help?

--
Regards,
Ron


"jw446" wrote:

Trying to create a table that will pull a price based on a value within a
range. Trick is I'm trying not to enter the entire range into the pricelist.
Example logic is "If you're aged 10-20, then you can enter for $3. If
you're aged 21-30, then you enter for $4. If you're 31 or older, you enter
for $5."

 
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
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Can multiple cell results be displayed in a single cell? FuadsCurse Excel Discussion (Misc queries) 2 May 18th 05 05:33 PM
how to add two data validation lists to a single cell? Mike Peter Excel Worksheet Functions 1 December 8th 04 08:22 PM
Counting multiple numbers in one cell clubin Excel Worksheet Functions 6 December 8th 04 02:47 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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