Help with regex recognition in Excel

yaz282

New Member
Joined
Aug 3, 2015
Messages
8
I have a dataset that was created in google docs spreadsheet with a number of regex queries applied to the data. The set has been transferred to an Excel workbook and all outcomes are showing as #NAME rather than a 0,1 coding as they should for the outcome to the work. I don't have access to the google docs work but i'm wondering what do I need to active/do in Excel for the output to show in the same way? I'm new to Regex so not sure what to do.
Any help would be much appreciated.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Can you provide an example or two of the input to Excel that generates the #NAME output?
 
Upvote 0
Can you provide an example or two of the input to Excel that generates the #NAME output?

Sure!

I've got
=IF(REGEXMATCH($G2,"([[Ss]ugar|[Ss]yrup)"),1,0) which shows up as #name.

The cell it was referencing contained hte folllowing sting so the result should be 1.

wheat flour, grains (36%) (wheat meal, kibbled purple wheat, kibbled red wheat), vegetable oil (sunflower oil), bran, salt, sunflower seeds, sesame seeds, rock salt (0.5%), raising agent (500), yeast, milk solids, sugar

<colgroup><col width="626"></colgroup><tbody>
</tbody>
 
Upvote 0
Sure!

I've got
=IF(REGEXMATCH($G2,"([[Ss]ugar|[Ss]yrup)"),1,0) which shows up as #name.

The cell it was referencing contained hte folllowing sting so the result should be 1.

wheat flour, grains (36%) (wheat meal, kibbled purple wheat, kibbled red wheat), vegetable oil (sunflower oil), bran, salt, sunflower seeds, sesame seeds, rock salt (0.5%), raising agent (500), yeast, milk solids, sugar

<tbody>
</tbody>
There is no worksheet function in Excel named REGEXMATCH, so using it in a formula causes Excel to respond with #NAME indicating thr function name is not recognized. A user-defined function (UDF) could be written using VBA to provide that function in Excel, or perhaps one already exists (Google Excel UDF for Regex match).
 
Upvote 0

Forum statistics

Threads
1,216,773
Messages
6,132,627
Members
449,740
Latest member
tinkdrummer

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