#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lp lp is offline
external usenet poster
 
Posts: 8
Default vlookup

I need to update pricing based on different scenarios for different product
groups. I have one spreadsheet that has each item, its product group and 3
levels of current pricing . I have another that lists each product group and
the factors for the new pricing. Im trying to use VLOOKUP to use the
Product Group to update the pricing based on the corresponding factor, but I
cant seem to find a way to use these factors - as they are treated as text.

I have 31,000 items and 21 product groups.

EXAMPLE:

ITEM NewPrice1 NewPrice2 NewPrice3 Price1 Price2 Price3 Product Grp
ABC ? ? ? 5.00 3.00
3.00 1001
AB5 7.00 7.00
6.50 1021


PRODUCT GROUP NewPrice1 NewPrice2 NewPrice3
1001 Price2*.85 Price2*1.00 Price2*1.00
1002 Price3*.95 Price3*.85 Price2*1.00

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default vlookup

You might find it easier to create your second table as below with 2 columns
per price:

PRODUCT NewPrice1 NewPrice2 NewPrice3
1001 Price2 0.85 Price2 1.00 Price2 1.00
1002 Price3 0.95 Price3 0.85 Price2 1.00

You can use a combination of INDEX anf VLOOKUP to get the data.

in example below, ITEM is row1, PRODUCT is row 6. Columns are from A onwards

ITEM NewPrice1 NewPrice2 NewPrice3 Price1 Price2 Price3 Product
ABC 2.55 5.00 3.00 3.00 1001
AB5 7.00 7.00 6.50 1021


PRODUCT NewPrice1 NewPrice2 NewPrice3
1001 Price2 0.85 Price2 1.00 Price2 1.00
1002 Price3 0.95 Price3 0.85 Price2 1.00

Formula to get the 2.55 figure is:

=(INDEX($E$1:$G$3,MATCH($H2,$A$7:$A$8,0)+1,MATCH($ B$7,$E$1:$G$1,0)))*VLOOKUP($H2,$A$7:$C$7,3,0)

Hope this helps.


"lp" wrote:

I need to update pricing based on different scenarios for different product
groups. I have one spreadsheet that has each item, its product group and 3
levels of current pricing . I have another that lists each product group and
the factors for the new pricing. Im trying to use VLOOKUP to use the
Product Group to update the pricing based on the corresponding factor, but I
cant seem to find a way to use these factors - as they are treated as text.

I have 31,000 items and 21 product groups.

EXAMPLE:

ITEM NewPrice1 NewPrice2 NewPrice3 Price1 Price2 Price3 Product Grp
ABC ? ? ? 5.00 3.00
3.00 1001
AB5 7.00 7.00
6.50 1021


PRODUCT GROUP NewPrice1 NewPrice2 NewPrice3
1001 Price2*.85 Price2*1.00 Price2*1.00
1002 Price3*.95 Price3*.85 Price2*1.00

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default vlookup

...minor correction ..

=(INDEX($E$1:$G$3,MATCH($H3,$A$7:$A$8,0)+1,MATCH($ B8,$E$1:$G$1,0)))*VLOOKUP($H3,$A$7:$G$8,3,0)

"Toppers" wrote:

You might find it easier to create your second table as below with 2 columns
per price:

PRODUCT NewPrice1 NewPrice2 NewPrice3
1001 Price2 0.85 Price2 1.00 Price2 1.00
1002 Price3 0.95 Price3 0.85 Price2 1.00

You can use a combination of INDEX anf VLOOKUP to get the data.

in example below, ITEM is row1, PRODUCT is row 6. Columns are from A onwards

ITEM NewPrice1 NewPrice2 NewPrice3 Price1 Price2 Price3 Product
ABC 2.55 5.00 3.00 3.00 1001
AB5 7.00 7.00 6.50 1021


PRODUCT NewPrice1 NewPrice2 NewPrice3
1001 Price2 0.85 Price2 1.00 Price2 1.00
1002 Price3 0.95 Price3 0.85 Price2 1.00

Formula to get the 2.55 figure is:

=(INDEX($E$1:$G$3,MATCH($H2,$A$7:$A$8,0)+1,MATCH($ B$7,$E$1:$G$1,0)))*VLOOKUP($H2,$A$7:$C$7,3,0)

Hope this helps.


"lp" wrote:

I need to update pricing based on different scenarios for different product
groups. I have one spreadsheet that has each item, its product group and 3
levels of current pricing . I have another that lists each product group and
the factors for the new pricing. Im trying to use VLOOKUP to use the
Product Group to update the pricing based on the corresponding factor, but I
cant seem to find a way to use these factors - as they are treated as text.

I have 31,000 items and 21 product groups.

EXAMPLE:

ITEM NewPrice1 NewPrice2 NewPrice3 Price1 Price2 Price3 Product Grp
ABC ? ? ? 5.00 3.00
3.00 1001
AB5 7.00 7.00
6.50 1021


PRODUCT GROUP NewPrice1 NewPrice2 NewPrice3
1001 Price2*.85 Price2*1.00 Price2*1.00
1002 Price3*.95 Price3*.85 Price2*1.00

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
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 01:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"