# Copying dates from one to anther sheet

Last edited:

### Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
In sheet2 you have visit 2 but the date for visit 1, is that correct?

Hi Stridhan,

Sheet1 i have Visit 1 and Visit 2, but Visit 2 is only important. Visit 2 will be in Sheet2.

Thank You for Your Help

Try this in A2 in sheet2 and drag to right and down.
I dunno how large the range is on sheet1 so I have the used row 100 in my example.

Code:
``=IFERROR(INDEX(Sheet1!\$B\$2:\$F\$100,SMALL(IF(Sheet1!\$F\$2:\$F\$100<>"",ROW(Sheet1!\$F\$2:\$F\$100)-ROW(\$F\$2)+1),ROWS(\$A\$2:A2)),MATCH(A\$1,Sheet1!\$B\$1:\$F\$1,0)),"")``

ADVERTISEMENT
thx buddy, but it doesnt work

I guess i missed NO on sheet2

Code:
``=IFERROR(INDEX(Sheet1!\$A\$2:\$F\$100,SMALL(IF(Sheet1!\$F\$2:\$F\$100<>"",ROW(Sheet1!\$F\$2:\$F\$100)-ROW(\$F\$2)+1),ROWS(\$A\$2:A2)),MATCH(A\$1,Sheet1!\$A\$1:\$F\$1,0)),"")``

enter with ctrl+shift+enter, not just enter

Replies
8
Views
1K
Replies
1
Views
1K
Replies
16
Views
2K
Replies
1
Views
974
Replies
1
Views
367

Threads
1,196,057
Messages
6,013,172
Members
441,751
Latest member
336448

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

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