#Value retured in the result of some formulas

capitarno

New Member
Joined
Jul 14, 2009
Messages
5
Hi,

I have a formula

=LEFT(Filenames!B2,FIND("\",Filenames!B2)-1)

which is pulling the first folder from a list of file names

The String CMT\Process returns CMT correctly as a value, however Process supplier returns #Value in my cell. (as there is no \ in the file name) There is no error in the formula so I dont believe I can use the ISError function.

Any guidance greatfully recieved
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
FIND will return an error if the text isn't present. Try:

=IF(ISNUMBER(FIND("\",Filenames!B2)),LEFT(Filenames!B2,FIND("\",Filenames!B2)-1),Filenames!B2)
 
Upvote 0
Welcome to the board...

#VALUE! IS an error, so you can use iserror...

Try

=IF(ISERROR(FIND("\",Filenames!B2)),Filenames!B2,LEFT(Filenames!B2,FIND("\",Filenames!B2)-1))
 
Upvote 0

Forum statistics

Threads
1,224,502
Messages
6,179,126
Members
452,890
Latest member
Nikhil Ramesh

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