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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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