I'm trying to have values repeat a specified number of times, but the number can be different and is determined based on a drop down. I've attached a screenshot here:
I would like a formula in G1 that says "For all values that equal "Yes" in Column C, repeat the corresponding values in Column B the specified times in Column D. If anything equals "No" or is blank in Column C, ignore it" and have it be an array output in Column G. I can get =REPT(B2,SEQUENCE(D2,1,1,0)) to work for just the first input but it's not scalable nor dynamic.
Any help anyone can provide is much appreciated!
I would like a formula in G1 that says "For all values that equal "Yes" in Column C, repeat the corresponding values in Column B the specified times in Column D. If anything equals "No" or is blank in Column C, ignore it" and have it be an array output in Column G. I can get =REPT(B2,SEQUENCE(D2,1,1,0)) to work for just the first input but it's not scalable nor dynamic.
Any help anyone can provide is much appreciated!