# Macro Help Needed

#### ticaroheath

##### New Member
Good Day Everyone!

I am in need of some help creating a macro for a project for work. I am a production scheduler. Here are the details. (sidenote: I sometimes suck at explaining so please question anything that doesn't sound right)

I have 4 tabs: Sheet 1, Sheet 2, Sheet 3, and Sheet 4.

I have information on Sheets 1,2,&3 that all have different information about the same ID number. I pull from several screens that all have different information about the same ID number.

Is there a way to take information from Sheet 1,2,&3 and combine it on Sheet 4? BUT I need it pulled by date (so i can schedule it properly) and the correct information goes to the proper column.
I assume that it would pull by date, several rows would have the same ID number and the info would fill into the columns as assigned. I'm not even sure if that's possible, but if its not, I'm super open to any great ideas!

Any help on this would be greatly appreciated.

#### Saurabhj

##### Well-known Member
Hi, Below is the steps formula performing:
1. Checks the ID in column M. (e.g. For Row no 2, it will extract ID 95270.
2. It will check the ID (found in step 1) in column A. (let formula found ID 95270 in A5)
3. Extract the information of J5 and put in Cell N2.

Please confirm if there is gap in my understanding. Also the output in Column N is blank as per the screenshot shared by you.

Great if you share data using XL2BB.

### Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

#### ticaroheath

##### New Member
Steps 1 & 2 are correct.

I need step 3 to extract the information in M5 and put into column N2.

#### Saurabhj

##### Well-known Member
Hi,

Excel Formula:
``=IFNA(INDEX(\$M:\$M,MATCH(VALUE(TRIM(MID(M2,FIND("ID:",M2)+3,FIND("ST",M2)-FIND("ID:",M2)-3))),\$A:\$A,0)),"")``

Replies
1
Views
110
Replies
0
Views
104
Replies
22
Views
356
Replies
7
Views
124
Replies
0
Views
101

1,181,426
Messages
5,929,822
Members
436,697
Latest member
sunnypl

### 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.

### Which adblocker are you using?

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

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