Help with =mid(b6,5,1) = f or m or unused

Jack Sseruwo

New Member
Joined
Nov 18, 2019
Messages
12
Hello Excellers...

I have attached a picture of a fx=MID formula whose result I want to now determine as male or female or unused.
The results in the column marked Sex should indicate that 1=M (male), 2=F (female) or 0 = (Unused).
Can anyone please assist me? I am working in a very secluded place and all I have is this online resource to get this done urgently.

Appreciated.
 

Attachments

  • Picture1.png
    Picture1.png
    164.4 KB · Views: 13

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hello Excellers...

I have attached a picture of a fx=MID formula whose result I want to now determine as male or female or unused.
The results in the column marked Sex should indicate that 1=M (male), 2=F (female) or 0 = (Unused).
Can anyone please assist me? I am working in a very secluded place and all I have is this online resource to get this done urgently.

Appreciated.

Oh, if there any other alternative formulae to go about what I am trying to achieve, please share them as well as long as they can achieve the same result.
 
Upvote 0
In E6, copied down :

=INDEX({"Unused","Male","Female"},MID(B6,5,1)+1)

Regards
 
Upvote 0
Another option
=CHOOSE(MID(B6,5,1)+1,"Unused","Male","Female")
 
Upvote 0
You're welcome. Thanks for following up on the responses. :)
 
Upvote 0

Forum statistics

Threads
1,215,576
Messages
6,125,633
Members
449,242
Latest member
Mari_mariou

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