Lookup formula

JV0710

Active Member
Joined
Oct 26, 2006
Messages
429
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
Hi, Please help me with this lookup query.

I have a column of data in a hierarchy (columnA).

As per the picture posted: if I type the store in cell D3, I want a formula in E3 to return the area that the store belongs in.

Thank you
JVN
Book1
ABCDEFGHIJ
1%GrowthStoreArea
2Area112
3store110store6Area2
4store214
5store312needaformulainE3thatwillreturntheareathatstore6(F3)belongsin
6Area214
7store410
8store510
9store615
10store716
11store84
12Area39
13store96
14store106
15store1112
16store128
Sheet1
 
...In Column A and for example: In cell D7, if the value in A7 = "A", then "", else, if the value in A7 <> "A" then need formula to find in column A from A7 upwards the first cell that has a different letter (A4) and return the corresponding value in column B ----> Answer = 24...

It looks like you meant...

B2, copied down:

=IF(A2="A","",LOOKUP(2,1/($A$1:A1<>A2),$B$1:B1))
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Thank you

I cannot tell you the amount that I have learnt just from this post . . .

JVN
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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