Why can't I use * in formula?

gresple

New Member
Joined
Apr 23, 2002
Messages
5
Hello guys, I would like to set a formula to search the remark field that contains the word "pass", but I found out I could not use * in the IF formula, can anyone help me?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
On 2002-05-08 18:34, gresple wrote:
Hello guys, I would like to set a formula to search the remark field that contains the word "pass", but I found out I could not use * in the IF formula, can anyone help me?

The wild card character * for any sequence of characters (or ? for any single character) can be used in the SEARCH funtion.
What are you trying to do?
 
Upvote 0
On 2002-05-08 18:34, gresple wrote:
Hello guys, I would like to set a formula to search the remark field that contains the word "pass", but I found out I could not use * in the IF formula, can anyone help me?

No, to my knowledge, you can not use a wildcard in the IF function.

Regards!
 
Upvote 0
Try:

=IF(ISERR(FIND("PASS",C4,1)>0),"your message or action if pass is not found","your message if pass is found")
This looks for the text PASS in C4 beginning a the first character and returns the position in the string where it found it. It returns an error if it is not found, thus the ISERR

You can remove the quotes is you want a number entered in the cell instead.

Forgot to mention that the "PASS" is case-sensitive.
This message was edited by klb on 2002-05-09 10:17
 
Upvote 0
Forgot to mention that the "PASS" is case-sensitive.

Hi klb:
Just to extend your point a little further, one can use the SEARCH function instead of FIND -- since SEARCH is not case sensitive.

Regards!
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,927
Members
448,533
Latest member
thietbibeboiwasaco

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