If the Second Character in A3 is _ then use X formula if not use Y formula

ihenson25

New Member
Joined
Jul 17, 2018
Messages
3
Sample data set below shows two separate text options within the column if the data has the _ within the cell I need to run a different formula than the ones without a _. And to avoid mistake the _ should only appear in the second character position.


[TABLE="width: 65"]
<colgroup><col width="65" style="width:49pt"> </colgroup><tbody>[TR]
[TD="width: 65"]mustangs[/TD]
[/TR]
[TR]
[TD]A_aces[/TD]
[/TR]
[TR]
[TD]badgers[/TD]
[/TR]
[TR]
[TD]panthers[/TD]
[/TR]
[TR]
[TD]bulldogs[/TD]
[/TR]
[TR]
[TD]T_aardvarks[/TD]
[/TR]
[TR]
[TD]C_Slitheren
tigers

[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Does this work for you?

Code:
=IF(MID(A3,2,1)="_","Forumla X","Formula Y")
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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