Copying dates from one to anther sheet

ceki2303

New Member
Joined
Jun 7, 2015
Messages
3
Last edited:

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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
 
Upvote 0
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)),"")
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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