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

How my Data exportsColumn I need to create with Formula
A
A
1A
A
BB
1B
B
CC
1C
1C
1C
C
DD
1D
1D
1D
D
EE
1E
E

<tbody>
</tbody>
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
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,215,351
Messages
6,124,445
Members
449,160
Latest member
nikijon

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