Search for string within cell and return something useful

melewie

Board Regular
Joined
Nov 21, 2008
Messages
188
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I am trying to run a check, what I have is a workbook with a list of all files in a directory the title of the files should contain an item number I also have a list of all Item numbers on a separate sheet within the workbook, I am really struggling to get what seems to be a simple formula working (i have never used these types of formulas before(poor excuse but its all I got))

So file name is on sheet 'Line balance Dir' column A and item code is on sheet 'Item Code' column A

been trying things along these lines =IFISNUMBER(SEARCH(A3,'Item Code'!A:A)) but not happening returns #name?

or =IF(FIND('Item Code'!A:A,A2),"TRUE","FALSE") returns #value!

any help is as always greatly appreciated

thank you :)
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
You can't use this with a full column reference for the Item Code, since "" (the blank cells at the end of the column) is in each cell.
A dynamic Named Range will solve that. Define a Name

Name: ItemCodes
RefersTo: ='Item Code'!$A$1 : INDEX('Item Code'!$A:$A, COUNTA('Item Code'!$A:$A), 1)

Then the formula =IF(SUMPRODUCT(--ISNUMBER(FIND(ItemCodes,A1)))=0, "none there", "Item code present")
 
Upvote 0
Thanks for your time gents, I realise now that I am a fool :ROFLMAO: all seems so obvious now
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,289
Members
449,077
Latest member
Rkmenon

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