Finding a word in a range and returning the number that follows by formula

DThib

Active Member
Joined
Mar 19, 2010
Messages
464
Office Version
  1. 365
Platform
  1. Windows
Good morning,

I have another task. My task got more complicated. The owner wants to place all files in one worksheet right under the previous. So with this, the title of the txt file that will be placed in will have the File number along with other information. I need to find the file number for the correct file and then again, in another column get the 2nd file and so on. The result will be in a separate worksheet and each file will be in a different column.

I have tried search, Mid and get nowhere. A3 is cell with the identity of the sample in the file

HTML:
=IF($A3="","",IFERROR(MID('File Data'!$A:$A,FIND("File",'File Data'!$A:$A)+1,2),"Blahh"))

Help?!

DThib
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hey,

I managed to get the entire string for the first instance but I really need just the file number. How do I make sure the file number after the word File is taken?
Code:
=IFERROR(INDEX('File Data'!$A:$A,MID(IF(FIND("File",'File Data'!$A:$A),ROW('File Data'!$A:$A),"False"),1,2)),"Nuts!"

result = entire string found by Run. Not sure if it finds this because it is the first line. I will also need to find the next file in another column.
 
Upvote 0
This will get 1 number but not the entire number
HTML:
=LEFT(MID('File Data'!$A:$A,SEARCH("File",'File Data'!$A:$A)+3,255))

Help, please!!!!!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
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