Issue with wilcards in formula

easybpw

Active Member
Joined
Sep 30, 2003
Messages
437
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hello and thanks in advance for the help.

I'm using Microsoft Office Professional 2013 and am having issues with wildcards in the formula below. Maybe I am not understanding things clearly.
I am trying to say that if F310 contains "Staff Charge" to put "1614" in the cell with the formula. And if it doesn't contain "Staff Charge" to do the lookup. The lookup works great without the IF statement I added. But I need the lookup to work only if F310 doesn't contain "Staff Charge". Yes, there is text before and after "Staff Charge" and this text is not constant. What am I missing? Are wildcards not possible with the formula I'm using? If not what is an alternative?


=IF(F310="*Staff Charge*","1614",LOOKUP(3,1/('JE Mapping'!$A$2:$A$150=Detail!$C310)/('JE Mapping'!$B$2:$B$150=Detail!$E310)/('JE Mapping'!$C$2:$C$150=Detail!$F310),('JE Mapping'!$D$2:$D$150)))
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You cannot use wildcards like that, try
Excel Formula:
=IF(ISNUMBER(SEARCH("Staff Charge",F310)),"1614",...
 
Upvote 0
This also works with wildcards:

Excel Formula:
=IF(COUNTIF(F310,"*Staff Charge*"),"1614", . . .
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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