Thread: [Solved] Problem with IF formula
View Single Post
 
Old 05-10-2023, 11:46 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Windows 10 Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Try
Code:
=IF(A2="","",IF(ISNUMBER(FIND("?",A2)),LEFT(A2,FIND("?",A2)-1),A2))
If FIND does not find the value, it returns a VALUE error. Wrapping with ISNUMBER does the trick
Attached Files
File Type: xlsm Book1.xlsm (12.3 KB, 0 views)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote