Automatically filling in a column based on 2 first digits of another one

bxlakke

New Member
Joined
Apr 7, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hey,

I need your help.
Is there any formula to fill in a column based on the first 2 digits of another cell?
Column A : filled with codes made up from 2 digits & 3 letters ex. 02AAA or 07BBB
Column B ; should display a value based on the first 2 digits. ex. 02 = A2 / 07 = A41 / 03 = A5 etc
i have all these values in another sheet. Can anybody advice me?


AB ( needs to be filled in automatically based on vlues of column A en B of another sheet
02AAAA2
07BBBA41
02CCCA2
07DDDA41
03EEEA5

values
02A2
03A5
07A41
etcetc
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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