Look up table for Left 3 and Mid 5,2 values and return Text in cell if found

nahaku

Board Regular
Joined
Mar 19, 2020
Messages
106
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello, I have this table, it is list of empty locations. I would need to put under each Aisle 219,218... function where it will check the the list in column A, for first 3 number = Aisle that is for example in column C10, and on side are numbers of position in Aisle .30 for example. What are in columns D11 -> D32 and then if it was found it will return in column C11 "Empty"
every empty Cell in column C needs to check Table against The Aisle number what is on Top every Column and in same time on the position number next to it what is usually 01-48
I know that I can use for lookup =AND(Left(cell,3),(Mid(Cell,5,2)) but when I tried it it always returned Fault , probably because I do not know how to implement lookup in Array.
Copy of Free WH location Checker.xlsx
ABCDEFGHIJ
9
10219219218
1144434344
12Location42414142
13219.44.3.240393940
14219.43.3.138373738
15219.43.2.536353536
16219.43.2.134333334
17219.42.2.232313132
18219.41.4.130292930
19219.41.3.528272728
20219.41.3.126252526
21219.41.2.324232324
22219.41.2.122212122
23219.40.4.620191920
24219.40.2.418171718
25219.40.2.216151516
26219.39.3.114131314
27219.39.2.512111112
28219.38.4.4109910
29219.38.1.68778
30219.37.6.36556
31219.37.4.34334
32219.37.3.32112
33219.37.2.5
34219.37.2.1
35219.37.1.3
36219.36.2.4
37219.35.2.5
38219.35.2.1
39219.33.2.5
40219.33.2.3
41219.32.6.2
42219.32.5.4
43219.32.5.2
44219.32.4.4
45219.32.4.2
46219.32.3.4
47219.32.3.2
48219.32.2.2
49219.31.6.5
50219.31.4.5
51219.31.4.1
52219.31.3.5
53219.31.3.1
54219.31.2.5
55219.31.2.3
56219.30.3.2
57219.30.2.2
58219.29.4.5
59219.29.4.3
60219.29.3.5
61219.29.3.3
62219.29.2.5
63219.29.2.3
64219.28.6.6
65219.28.5.6
66219.28.5.4
67219.28.5.2
68219.28.4.6
69219.28.4.4
70219.28.4.2
71219.28.3.6
72219.28.3.4
73219.28.3.2
74219.28.2.2
75219.27.3.3
76219.27.2.5
77219.27.2.3
78219.27.2.1
79219.26.2.2
80219.25.6.5
81219.25.6.1
82219.25.5.1
83219.25.3.1
84219.25.2.5
85219.25.2.3
86219.25.2.1
87219.24.2.4
88219.23.6.5
89219.23.6.3
90219.23.5.5
91219.23.5.3
92219.23.5.1
93219.23.4.5
94219.23.4.3
95219.23.4.1
96219.23.3.3
97219.23.3.1
98219.23.2.1
99219.23.1.1
100219.22.6.4
101219.22.5.4
102219.22.4.4
103219.22.2.6
104219.22.1.4
105219.21.6.5
106219.21.5.5
107219.21.5.3
108219.21.4.5
109219.21.4.3
110219.21.4.1
111219.21.3.5
112219.21.3.1
113219.21.2.5
114219.21.2.1
115219.21.1.1
116219.20.6.2
117219.20.3.6
118219.20.2.6
119219.19.5.1
120219.19.4.3
121219.19.4.1
122219.19.3.5
123219.19.3.3
124219.19.3.1
125219.19.2.1
126219.18.4.6
127219.17.6.5
128219.17.6.3
129219.17.5.3
130219.17.5.1
131219.17.4.5
132219.17.4.3
133219.17.4.1
134219.17.3.5
135219.17.3.1
136219.16.6.6
137219.16.5.6
138219.16.4.6
139219.16.4.2
140219.16.3.6
141219.16.3.2
142219.16.2.6
143219.15.6.3
144219.15.5.3
145219.15.5.1
146219.15.4.3
147219.15.4.1
148219.15.3.5
149219.15.3.3
150219.15.2.3
151219.14.6.6
152219.14.5.6
153219.14.4.6
154219.14.3.6
155219.14.3.4
156219.14.2.4
157219.13.6.5
158219.13.6.3
159219.13.6.1
160219.13.5.5
161219.13.5.3
162219.13.5.1
163219.13.4.5
164219.13.4.3
165219.13.4.1
166219.13.3.5
167219.13.3.3
168219.13.2.5
169219.13.2.3
170219.12.3.4
171219.12.2.4
172219.11.6.5
173219.11.6.3
174219.11.5.5
175219.11.5.3
176219.11.5.1
177219.11.4.5
178219.11.4.3
179219.11.4.1
180219.11.3.5
181219.11.3.1
182219.11.2.5
183219.11.2.1
184219.10.3.4
185219.10.2.6
186219.10.2.2
187219.09.6.5
188219.09.6.1
189219.09.5.5
190219.09.5.1
191219.09.4.5
192219.09.4.1
193219.09.3.3
194219.09.3.1
195219.09.2.5
196219.09.2.3
197219.08.5.4
198219.08.4.6
199219.08.4.4
200219.08.3.6
201219.08.3.4
202219.08.2.4
203219.08.2.2
204219.07.6.5
205219.07.6.3
206219.07.5.5
207219.07.5.3
208219.07.4.5
209219.07.1.5
210219.07.1.1
211219.06.6.6
212219.06.6.2
213219.06.5.6
214219.06.5.2
215219.06.4.6
216219.06.4.2
217219.06.3.2
218219.06.2.2
219219.06.1.2
220219.05.4.3
221219.05.2.5
222219.05.2.3
223219.05.1.3
224219.04.6.4
225219.04.5.4
226219.04.2.2
227219.03.6.3
228219.03.5.3
229219.03.4.3
230219.03.3.3
231219.03.2.3
232219.02.6.6
233219.02.6.2
234219.02.5.6
235219.02.5.2
236219.02.4.6
237219.02.4.2
238219.02.3.6
239219.02.2.2
240219.01.3.1
241219.01.2.5
242219.01.2.3
243219.01.2.1
244218.40.2.4
245218.40.2.2
246218.34.2.2
247218.33.2.1
248218.30.2.4
249218.28.3.4
250218.28.2.6
251218.28.2.4
252218.27.2.3
253218.27.2.1
254218.25.4.1
255218.25.2.3
256218.22.2.6
257218.22.1.6
258218.20.3.4
259218.20.2.2
260218.19.2.3
261218.19.2.1
262218.18.2.6
263218.18.2.4
264218.18.2.2
265218.17.3.1
266218.17.2.5
267218.17.2.3
268218.17.2.1
269218.14.3.4
270218.14.3.2
271218.13.2.5
272218.12.4.6
273218.12.4.4
274218.12.2.4
Sheet1
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
You might find it easier if you used a more consistent format.

Try this in C11 and fill down.

=IF(COUNTIF($A:$A,$C$10&"."&D11&".?.?"),"Found","NotFound")
 
Upvote 0
You might find it easier if you used a more consistent format.

Try this in C11 and fill down.

=IF(COUNTIF($A:$A,$C$10&"."&D11&".?.?"),"Found","NotFound")

Yes this one is working Thank you. :P
This just very small part of all data, it did not let me paste here more :D
 
Upvote 0
=IF(COUNTIF($A:$A,$C$10&"."&D11&".?.?"),"Found","NotFound")

I am not sure if you could help me with this problem too, I want to now look up that Table for value in Column D4, and it should list all values what beggins with D4 Value.
By the way, the Table should already have Unique Values, I used here Unique function because it usually worked for me, but now It cant show any results.
Copy of Free WH location Checker.xlsx
ABCD
4LocationLocation:002.55
5001.07.1.1#CALC!
6001.28.4.1
7001.33.4.1
8001.35.1.3
9001.40.1.1
10001.41.4.2
11001.42.3.2
12001.43.4.2
13001.45.4.2
14001.47.4.2
15001.49.2.2
16001.49.4.2
17001.51.4.2
18002.01.4.2
19002.23.3.2
20002.25.1.2
21002.32.4.1
22002.40.4.2
23002.52.4.2
24002.53.1.3
25002.53.4.1
26002.53.4.2
27002.54.1.3
28002.54.1.4
29002.55.1.3
30002.55.1.4
31002.55.2.3
32002.55.2.4
33002.55.4.2
34002.56.1.3
35
Sheet1
Cell Formulas
RangeFormula
D5D5=UNIQUE(FILTER(A5:A34,""&D4&"*"=A5:A34))
 
Upvote 0
Like this?
Assuming D4 is a Text value

20 04 22.xlsm
ABCD
3
4LocationLocation:002.55
5001.07.1.1002.55.1.3
6001.28.4.1002.55.1.4
7001.33.4.1002.55.2.3
8001.35.1.3002.55.2.4
9001.40.1.1002.55.4.2
10001.41.4.2
11001.42.3.2
12001.43.4.2
13001.45.4.2
14001.47.4.2
15001.49.2.2
16001.49.4.2
17001.51.4.2
18002.01.4.2
19002.23.3.2
20002.25.1.2
21002.32.4.1
22002.40.4.2
23002.52.4.2
24002.53.1.3
25002.53.4.1
26002.53.4.2
27002.54.1.3
28002.54.1.4
29002.55.1.3
30002.55.1.4
31002.55.2.3
32002.55.2.4
33002.55.4.2
34002.56.1.3
35
FILTER
Cell Formulas
RangeFormula
D5:D9D5=FILTER(Table1[Location],LEFT(Table1[Location],LEN(D4))=D4,"")
Dynamic array formulas.
 
Upvote 0
I don't have the UNIQUE function for testing, see if this works

=UNIQUE(FILTER(A5:A34,TEXT(D4,"000.00")&"*"=A5:A34))

If D4 contains 2.55 formatted as 000.00 then using ""&D4 will revert back to 2.55
 
Upvote 0
I don't have the UNIQUE function for testing, see if this works

=UNIQUE(FILTER(A5:A34,TEXT(D4,"000.00")&"*"=A5:A34))

If D4 contains 2.55 formatted as 000.00 then using ""&D4 will revert back to 2.55
For some reason it shows #Calc error,
I found on internet =INDEX($A$5:$A$34,SMALL(IF(""&$D$4&"*"=$A$5:$A$34,ROW($A$5:$A$34)-ROW($A$5)+1),ROW(4:4)))
but this will give me #Num error
 
Upvote 0
Did you try the other suggestion (after adjusting for your table name)?
 
Upvote 0
Did you try the other suggestion (after adjusting for your table name)?
Yes this one worked, I am sorry, did not see your post as I scrolled down quickly and saw only post from jasonb75
However, Thank you Both.
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

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