Enlisting two columns into a new based on terms

AlirezaSharyan

New Member
Joined
Feb 12, 2022
Messages
9
Office Version
  1. 2019
Platform
  1. Windows
Dear all
I have a problem with function "Address", but I'm not even sure about picking the right function.
As you can see in image 1, in column "A", I have some data which is dynamic (can vary. In the sample here, data finishes in "A35"), and I have some other data in column "O" which are dynamic too.
I need to list these data in column "A" in another sheet (Image 2), the way when the first data list ends, the second data list to be added to the same column. My formula works for the first cell and adds the value of cell "O3" of the image 1 to cell "A35" in image 2. But after that, the same data is repeated in the next cells. I guess there is something wrong with what I wrote in parameters of the function "Address".

May someone check the issue?

Best regards
 

Attachments

  • 01-LIST.jpg
    01-LIST.jpg
    252 KB · Views: 10
  • 02-FORMULA.jpg
    02-FORMULA.jpg
    141.9 KB · Views: 10

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
Hello! Replace the third argument in the Address with "4" on "3".
 
Upvote 0
If the second list is constantly in the "O" column, then you can contact directly, without the "address" function. Or is it not for you?
 
Upvote 0
Try. In A2 of SHEET2. Copy down.
Excel Formula:
=IF(ROWS($A$2:$A2)<=COUNTA(Sheet1!$A$1:$A$1000),Sheet1!A3,INDEX(Sheet1!$O$3:$O$1000,ROWS($A$2:$A2)-COUNTA(Sheet1!$A$1:$A$1000)))
 
Upvote 0
Try this. In A2 of Sheet2.
Excel Formula:
=IF(ROWS($A$2:$A2)<=COUNTA(Sheet1!$A$3:$A$1000),Sheet1!A3,IF(ROWS($A$2:$A2)<=(COUNTA(Sheet1!$A$3:$A$1000)+COUNTA(Sheet1!$O$3:$O$1000)),INDEX(Sheet1!$O$3:$O$1000,ROWS($A$2:$A2)-COUNTA(Sheet1!$A$1:$A$1000)),""))
 
Upvote 0
Solution
Try this. In A2 of Sheet2.
Excel Formula:
=IF(ROWS($A$2:$A2)<=COUNTA(Sheet1!$A$3:$A$1000),Sheet1!A3,IF(ROWS($A$2:$A2)<=(COUNTA(Sheet1!$A$3:$A$1000)+COUNTA(Sheet1!$O$3:$O$1000)),INDEX(Sheet1!$O$3:$O$1000,ROWS($A$2:$A2)-COUNTA(Sheet1!$A$1:$A$1000)),""))
THIS ONE IS JUST FINE. TAHNK YOU VERY MUCH
 
Upvote 0

Forum statistics

Threads
1,225,202
Messages
6,183,541
Members
453,168
Latest member
Luggsy

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