Asterisk in Excel

lstewart

New Member
Joined
Jan 28, 2014
Messages
47
I am using the following formula
=IF(MATCH(Z6,A$219:A$243,0) < MATCH(AB6,A$219:A$243,0),"Yes", "No")

The match is using letters with symbols e.g B-, B, B+

All works fine, until I use the * symbol.

I know to use the ~ symbol in Excel when * is in the spread sheet however the formula above does not recognise I have * in the match

Excel ignores the *

When I do a find and replace in Excel for A* I use the A~* and that works fine, just my formula that ignores the *.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Excel gives me a #Value! on my formula below, I can't work out why The text entered is A*+ and B.

=IF(MATCH(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(AA2,"A*","A~*",),"A*-","A~*-"),"A*+","A~*+"), A$219:A$243,0) < MATCH(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(AB2,"A*","A~*",),"A*-","A~*-"),"A*+","A~*+"), A$219:A$243,0),"Yes", "No")
 
Upvote 0
You only need to replace the * with ~*, so try:

=IF(MATCH(SUBSTITUTE(AA2,"*","~*"),A$219:A$243,0)<MATCH(SUBSTITUTE(AB2,"*","~*"),A$219:A$243,0),"Yes","No")
 
Upvote 0
I understand now, I thought I needed to substitute each value.

It works with the simplified formula

=IF(MATCH(SUBSTITUTE(GD2,"*","~*"),A$219:A$243,0) < MATCH(SUBSTITUTE(GF2,"*","~*"),A$219:A$243,0),"Yes", "No")

Thank you.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,267
Members
449,075
Latest member
staticfluids

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