Need formula that repeats a value from above when "1" is shown

mcdanijt

New Member
Joined
Feb 25, 2019
Messages
2
I get an export out of our scheduling system and need to aggregate the raw materials needed. I need a formula that, when "1" or blank is shown, it will give the next value above that is not a "1" or blank

See below for my data set and what is needed

How my data exports Column I need to create with a formula

[TABLE="width: 500"]
<tbody>[TR]
[TD]How my Data exports[/TD]
[TD]Column I need to create with Formula[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]E[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Assuming your non 1 or blank values are text as in your sample:

=LOOKUP(REPT("z",255),$A$1:A1)

Copy down.


Excel 2010
AB
1AA
21A
3A
4BB
51B
6B
7CC
81C
91C
101C
11C
12DD
131D
141D
151D
16D
17EE
181E
Sheet1
Cell Formulas
RangeFormula
B1=LOOKUP(REPT("z",255),$A$1:A1)
B2=LOOKUP(REPT("z",255),$A$1:A2)
B3=LOOKUP(REPT("z",255),$A$1:A3)
B4=LOOKUP(REPT("z",255),$A$1:A4)
B5=LOOKUP(REPT("z",255),$A$1:A5)
B6=LOOKUP(REPT("z",255),$A$1:A6)
B7=LOOKUP(REPT("z",255),$A$1:A7)
B8=LOOKUP(REPT("z",255),$A$1:A8)
B9=LOOKUP(REPT("z",255),$A$1:A9)
B10=LOOKUP(REPT("z",255),$A$1:A10)
B11=LOOKUP(REPT("z",255),$A$1:A11)
B12=LOOKUP(REPT("z",255),$A$1:A12)
B13=LOOKUP(REPT("z",255),$A$1:A13)
B14=LOOKUP(REPT("z",255),$A$1:A14)
B15=LOOKUP(REPT("z",255),$A$1:A15)
B16=LOOKUP(REPT("z",255),$A$1:A16)
B17=LOOKUP(REPT("z",255),$A$1:A17)
B18=LOOKUP(REPT("z",255),$A$1:A18)
 
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,719
Members
452,995
Latest member
isldboy

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