Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DCS DCS is offline
external usenet poster
 
Posts: 4
Default Using lookup function - HELP!!

I am trying to use the lookup function to display the price of a widget with
a given volume that I will use as an input cell. The issue the volume is a
range using two cells. See below


Volume Price
- 10,000 3.00
10,000 - 50,000 2.00
50,001 - 100,000 1.00

How do I setup a lookup formula to accomplish this? Keep in mind the ranges
of volume per price are in two separate cells. So 0 and 10,000 have their
own cell.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Using lookup function - HELP!!

IF the given volume is in A12 and your table is in
A1:C4 then the following formula should work:
= SUMPRODUCT((A2:A4<=A12)*(B2:B4=A12)*(C2:C4))

Just keep in mind that I assumed there is a typo, since 10.000 is in
two ranges. If it is not and someone was to buy exactly 10.000 the
formula will return 5...

Best regards
Per Erik


On Mon, 5 Mar 2007 14:04:10 -0800, DCS
wrote:

I am trying to use the lookup function to display the price of a widget with
a given volume that I will use as an input cell. The issue the volume is a
range using two cells. See below


Volume Price
- 10,000 3.00
10,000 - 50,000 2.00
50,001 - 100,000 1.00

How do I setup a lookup formula to accomplish this? Keep in mind the ranges
of volume per price are in two separate cells. So 0 and 10,000 have their
own cell.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DCS DCS is offline
external usenet poster
 
Posts: 4
Default Using lookup function - HELP!!

it should be 10,001 in line two.

I do not need to calculate the revenue just need to bring up the correct
price based on the volume.

So would I just get rid of the multiplication?


"Per Erik Midtrød" wrote:

IF the given volume is in A12 and your table is in
A1:C4 then the following formula should work:
= SUMPRODUCT((A2:A4<=A12)*(B2:B4=A12)*(C2:C4))

Just keep in mind that I assumed there is a typo, since 10.000 is in
two ranges. If it is not and someone was to buy exactly 10.000 the
formula will return 5...

Best regards
Per Erik


On Mon, 5 Mar 2007 14:04:10 -0800, DCS
wrote:

I am trying to use the lookup function to display the price of a widget with
a given volume that I will use as an input cell. The issue the volume is a
range using two cells. See below


Volume Price
- 10,000 3.00
10,000 - 50,000 2.00
50,001 - 100,000 1.00

How do I setup a lookup formula to accomplish this? Keep in mind the ranges
of volume per price are in two separate cells. So 0 and 10,000 have their
own cell.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Using lookup function - HELP!!

No, just enter the formula as it is.
And if you enter 15.000 in A12 the result will be 2.

Per Erik

On Mon, 5 Mar 2007 14:25:08 -0800, DCS
wrote:

it should be 10,001 in line two.

I do not need to calculate the revenue just need to bring up the correct
price based on the volume.

So would I just get rid of the multiplication?


"Per Erik Midtrød" wrote:

IF the given volume is in A12 and your table is in
A1:C4 then the following formula should work:
= SUMPRODUCT((A2:A4<=A12)*(B2:B4=A12)*(C2:C4))

Just keep in mind that I assumed there is a typo, since 10.000 is in
two ranges. If it is not and someone was to buy exactly 10.000 the
formula will return 5...

Best regards
Per Erik


On Mon, 5 Mar 2007 14:04:10 -0800, DCS
wrote:

I am trying to use the lookup function to display the price of a widget with
a given volume that I will use as an input cell. The issue the volume is a
range using two cells. See below


Volume Price
- 10,000 3.00
10,000 - 50,000 2.00
50,001 - 100,000 1.00

How do I setup a lookup formula to accomplish this? Keep in mind the ranges
of volume per price are in two separate cells. So 0 and 10,000 have their
own cell.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DCS DCS is offline
external usenet poster
 
Posts: 4
Default Using lookup function - HELP!!

eric, what if the last band has no end range so:

50,001 -

Thanks for you help!

"Per Erik Midtrød" wrote:

No, just enter the formula as it is.
And if you enter 15.000 in A12 the result will be 2.

Per Erik

On Mon, 5 Mar 2007 14:25:08 -0800, DCS
wrote:

it should be 10,001 in line two.

I do not need to calculate the revenue just need to bring up the correct
price based on the volume.

So would I just get rid of the multiplication?


"Per Erik Midtrød" wrote:

IF the given volume is in A12 and your table is in
A1:C4 then the following formula should work:
= SUMPRODUCT((A2:A4<=A12)*(B2:B4=A12)*(C2:C4))

Just keep in mind that I assumed there is a typo, since 10.000 is in
two ranges. If it is not and someone was to buy exactly 10.000 the
formula will return 5...

Best regards
Per Erik


On Mon, 5 Mar 2007 14:04:10 -0800, DCS
wrote:

I am trying to use the lookup function to display the price of a widget with
a given volume that I will use as an input cell. The issue the volume is a
range using two cells. See below


Volume Price
- 10,000 3.00
10,000 - 50,000 2.00
50,001 - 100,000 1.00

How do I setup a lookup formula to accomplish this? Keep in mind the ranges
of volume per price are in two separate cells. So 0 and 10,000 have their
own cell.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Using lookup function - HELP!!

With you volume entered in A1, try this:

=LOOKUP(A1,{0,1,10001,50001;0,3,2,1})


--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"DCS" wrote in message
...
I am trying to use the lookup function to display the price of a widget
with
a given volume that I will use as an input cell. The issue the volume is
a
range using two cells. See below


Volume Price
- 10,000 3.00
10,000 - 50,000 2.00
50,001 - 100,000 1.00

How do I setup a lookup formula to accomplish this? Keep in mind the
ranges
of volume per price are in two separate cells. So 0 and 10,000 have their
own cell.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Using lookup function - HELP!!

That was brilliant, much better than my solution!

Per Erik


On Mon, 5 Mar 2007 14:24:54 -0800, "Ragdyer"
wrote:

With you volume entered in A1, try this:

=LOOKUP(A1,{0,1,10001,50001;0,3,2,1})


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DCS DCS is offline
external usenet poster
 
Posts: 4
Default Using lookup function - HELP!!

Ragdyer I do not understand your formula? Can't I just put in the cell
reference of the values?

If you used my example starting in A1, I want to be able to type the volume
(lets say this is in A12) and what will pop out is the price.

So if I type in cell a12 40,000 units my price will be $2.00. The issue is
as well I have multiple price points so column be is for 1 year price, if you
add in an additional column for year 2 price which would be different that
column b

Year 1 Price Year 2 Price

0 - 10,000 $3.00 $2.50
10,001 - 50,000 $2.00 $1.50
50,001 - $1.00 $0.50

So my table where this will formula will go looks like this

Year 1 Price Year 2 Price

and I have the expected volume in a different cell that will be where the
user will input the volume.


"Ragdyer" wrote:

With you volume entered in A1, try this:

=LOOKUP(A1,{0,1,10001,50001;0,3,2,1})


--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"DCS" wrote in message
...
I am trying to use the lookup function to display the price of a widget
with
a given volume that I will use as an input cell. The issue the volume is
a
range using two cells. See below


Volume Price
- 10,000 3.00
10,000 - 50,000 2.00
50,001 - 100,000 1.00

How do I setup a lookup formula to accomplish this? Keep in mind the
ranges
of volume per price are in two separate cells. So 0 and 10,000 have their
own cell.




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Using lookup function - HELP!!

Year 1 Price volume entered in A12:
=LOOKUP(A12,{0,1,10001,50001;0,3,2,1})

Year 2 Price volume entered in B12:
=LOOKUP(B12,{0,1,10001,50001;0,2.5,1.5,0.5})


If you insist on a datalist, for future additions, you could try this:
In X1 to Z4, enter this:

X Y Z
1 0 0 0
2 1 3 2.5
3 10001 2 1.5
4 50001 1 0.5

Then, use this formula for Year 1 Pricing:
=VLOOKUP(A12,X1:Z4,2)

And use this formula for Year 2 Pricing:
=VLOOKUP(B12,X1:Z4,3)

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"DCS" wrote in message
...
Ragdyer I do not understand your formula? Can't I just put in the cell
reference of the values?

If you used my example starting in A1, I want to be able to type the volume
(lets say this is in A12) and what will pop out is the price.

So if I type in cell a12 40,000 units my price will be $2.00. The issue is
as well I have multiple price points so column be is for 1 year price, if
you
add in an additional column for year 2 price which would be different that
column b

Year 1 Price Year 2 Price

0 - 10,000 $3.00 $2.50
10,001 - 50,000 $2.00 $1.50
50,001 - $1.00 $0.50

So my table where this will formula will go looks like this

Year 1 Price Year 2 Price

and I have the expected volume in a different cell that will be where the
user will input the volume.


"Ragdyer" wrote:

With you volume entered in A1, try this:

=LOOKUP(A1,{0,1,10001,50001;0,3,2,1})


--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"DCS" wrote in message
...
I am trying to use the lookup function to display the price of a widget
with
a given volume that I will use as an input cell. The issue the volume
is
a
range using two cells. See below


Volume Price
- 10,000 3.00
10,000 - 50,000 2.00
50,001 - 100,000 1.00

How do I setup a lookup formula to accomplish this? Keep in mind the
ranges
of volume per price are in two separate cells. So 0 and 10,000 have
their
own cell.






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
Help w/ LOOKUP function!! MsBeverlee Excel Worksheet Functions 7 February 21st 07 08:08 PM
how to combine an IF Function with a lookup function to determine [email protected] Excel Worksheet Functions 1 December 5th 06 06:09 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
lookup function Eelco Excel Discussion (Misc queries) 1 July 13th 05 06:51 PM
Lookup or Other Function? bsleeth Excel Discussion (Misc queries) 1 May 11th 05 03:40 AM


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