Help in Formula

ashani

Active Member
Joined
Mar 14, 2020
Messages
347
Office Version
  1. 365
Platform
  1. Windows
hi experts,

i wonder if you could help me, I have a list of 15000 names in database and I want excel to review in Column A if there is either Test1 to Test 5 or Test20 to Test24 then the heading in Yellow i.e. ABC or DEF comes next to it. If there's something else then leave it blank.
I would really appreciate your help.

1699892537437.png
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
It would be easier if you stacked your result table like this, then you could just do a VLOOKUP.



Test1ABC
Test2ABC
Test3ABC
Test4ABC
Test5ABC
Test20DEF
Test21DEF
Test22DEF
Test23DEF
Test24DEF
 
Upvote 0
Book2
ABCDEFGH
1Test1ABCTest1ABC
2Test24DEFTest2ABC
3Test3ABC
4Test4ABC
5Test5ABC
6Test20DEF
7Test21DEF
8Test22DEF
9Test23DEF
10Test24DEF
Sheet1
Cell Formulas
RangeFormula
B1:B2B1=VLOOKUP(A1,$G$1:$H$10,2,0)
 
Upvote 0
Thank you - how would you leave it blank if not found
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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