Repeat Text based on Dynamic Array 1s and 0s

Status
Not open for further replies.

dejhantulip

Board Regular
Joined
Sep 9, 2015
Messages
58
Office Version
  1. 365
Platform
  1. Windows
Hey everyone,

I had a problem that I needed to solve and I have simplified it to hopefully be able to explain it properly.

Here is the situation:
1) I have a dynamic array on column R
2) I have some text on column S
3) The end result I am looking for is shown in column T

YJhWPQQ.png


Basically I would like to use dynamic arrays to repeat the text on column T every time a number (greater than zero or other than zero) is shown on column R.
As you can see the AP-001 text is repeated from the start (row 3) up until row 22 because of row 23 there is the AP-002 text, and from row 23 on up until row 37 AP-002 is repeated.
By the way, the numbers in column R are unique (will never be repeated in the R column).

I am looking for a dynamic array solution as I want this to be dynamic and not have to "manually" copy a formula.

Any ideas or help?
I really don't know if this is even possible.

Thank you very much in advance!


ORLANDO
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Maybe
in T3
=IF(R3="","",LOOKUP(2,1/(R$3:R3>0),S$3:S3))
and copy down column T for as many rows as you have filled in column R
Ah, just read your "manual formula" bit :(
 
Upvote 0
In that case I will close this thread.

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,999
Messages
6,122,645
Members
449,093
Latest member
Ahmad123098

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