Auto populate subitemcode

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
350
Office Version
  1. 365
Platform
  1. Windows
i have a table in sheet 1 that has an item code with its corresponding sub item code and other table that has no corresponding sub item code "No sub item code"..
in sheet 2 column F is the input data. i need that, everytime i input an item code it will auto populate sub item code in column G but if there is no subitemcode it will return blank cells (see yellow color).


Many thanks,

Book1
ABCDEFG
1Sheet 1Sheet 2InputExpected Result
2Item codeSub Item CodeItem codeSub Item Code
3AAAAAA1BBBBBB1
4AAAAAA2BBB2
5AAAAAA3BBB3
6AAAAAA4BBB4
7AAAAAA5BBB5
8BBBBBB1No Sub item Code 1
9BBBBBB2CCCCCC1
10BBBBBB3CCC2
11BBBBBB4CCC3
12BBBBBB5AAAAAA1
13CCCCCC1AAA2
14CCCCCC2AAA3
15CCCCCC3AAA4
16DDDDDD1AAA5
17DDDDDD2No Sub item Code 2
18DDDDDD3BBBBBB1
19DDDDDD4BBB2
20BBB3
21BBB4
22BBB5
23CCCCCC1
24CCC2
25CCC3
26
Sheet1
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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