lookup reference from change in value

JONESY

Board Regular
Joined
Jul 23, 2004
Messages
63
Hi Everybody

what I'd like to do is:
In col A there are specific product codes.
In Row 1col B-AZetc there are week no's
Against each specific product code there are prices which remain the same however sometimes these are reduced in a particular week
i want to be able to lookup a particular product code reference against the spreadsheet and for a formula to tell which week it was first marked down.

i've tried playing around with hlookup, match and index but i'm not having any bright idea's

Thanks for the help

L
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,

With weeks in row 1 and prices in row 2, try:

=INDEX(C1:AZ1,MATCH(1,--(C2:AZ2<>B2:AY2),0))

confirmed with Ctrl + shift + enter.
 
Upvote 0
thanks for the help works a treat

If you wouldn't mind could you tell me what the -- does in the array formula?
Really must get to grips with these. Every time I think I'm making inroads into excel something comes along and drags me back!

Thanks Again

L
 
Upvote 0
(C2:AZ2<>B2:AY2)

Is a condition that returns an array like:

TRUE,TRUE,TRUE,TRUE,FALSE,TRUE

when subjecting it with a mathematical operation like -- ( 2 minus) it converts into numbers.

1,1,1,1,0,1
 
Upvote 0

Forum statistics

Threads
1,207,259
Messages
6,077,349
Members
446,279
Latest member
hoangquan2310

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top