Extract Characters =MID(D2,2,3) (If requirement)

sakrams

Board Regular
Joined
Sep 28, 2009
Messages
59
Office Version
  1. 2016
Platform
  1. Windows
Hi Guys,


I need your help with an excel sheet (File Links below).

https://ufile.io/qois1
or
https://files.fm/u/wmmtttcc



In column "C” I am trying to get 2nd, 3rd and 4th character/number if the Name is starting with "0". If it is not starting with "0" then i need the first 4 characters.


The current formula I have gives me the 2nd, 3rd and 4th character, but the adjacent columns Vlookup does not work unless I copy and paste that column as text and convert them all to number.


Any tip will be highly appreciated.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Can you show some samples here please? Im not going to strange-looking file hosting sites
 
Upvote 0


n1AVvb

A2 = =VLOOKUP([@Unit],$F$1:$H$6,2,0)
B2 = =VLOOKUP([@Unit],$F$1:$H$42,3,0)
C2 = =MID(D2,2,3)



Can you show some samples here please? Im not going to strange-looking file hosting sites
 
Upvote 0
Awesome.. This worked perfectly. Thank you so much.
 
Upvote 0
Awesome.. This worked perfectly. Thank you so much.

[TABLE="width: 194"]
<tbody>[TR]
[TD]Awesome.. This worked perfectly. Thank you so much.




[/TD]
[/TR]
</tbody>[/TABLE]
Give this formula a try...

=0+LEFT(D2,4)
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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