Thread
: [Solved]
Problem with IF formula
View Single Post
05-10-2023, 11:46 PM
Pecoflyer
Windows 10
Office 2021
Expert
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
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
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
Pecoflyer
View Public Profile
Find all posts by Pecoflyer