IF with MID function

nahmja

New Member
Joined
May 12, 2015
Messages
15
Thanks for your support in advance:)

I would like to know is there any possibility using IF function with MID to get result ? i am using formula is =IF(MID(A2,1,3)+0,IF(A2<=201,"TT,IF(A2<=202,"MT",IF(A2>3000,"ECT")))

Note! i have three types of ID's (starting id is from 201 & second starting from 202 & third is above 3000)

I have data as below.

AB
1IDRequired result
2
201201214

<tbody>
</tbody>
TT

<tbody>
</tbody>
3
202656564

<tbody>
</tbody>
MT

<tbody>
</tbody>
4
3548

<tbody>
</tbody>
ECT

<tbody>
</tbody>
5
8835

<tbody>
</tbody>
ECT

<tbody>
</tbody>
6
20255554

<tbody>
</tbody>
MT

<tbody>
</tbody>
7
201010101

<tbody>
</tbody>
TT

<tbody>
</tbody>
8
5485

<tbody>
</tbody>
MT

<tbody>
</tbody>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,216,046
Messages
6,128,489
Members
449,455
Latest member
jesski

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