Interesting (Cell Offset?) Problem

Jtucker10278

Board Regular
Joined
May 14, 2017
Messages
55
I have data that was exported from Access in a way that is difficult for me to use.
(if it helps to understand I am trying to link panels to a layout or page number, and each layout or page number may have one or more panels)

the data columns are easy

Layout Number, Panel Number, qty

but they are offset in the rows.

1640267686692.png


What I need is for each panel number to have the layout number for it, in the column to the left.
like this

1640267848749.png


Now I know I could redo the query in Access but I don't have access to the actual data, just a data dump that was given to me.
and I am sure someone could probably write an vba function to do what I need (which would be appreciated if its possible and someone can)

But really, I thought this was going to be a simple "iftext then equal cell x"
and now after about an hour of fighting with it trying different things I'm currious if there was a simple way to do it with formulas, or even a complex way if it could even be done using formulas alone.

Thanks for the help
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
You can organize this data with formulas. Get the first couple of rows done and then you can copy the formulas down until all of your data is captured. In order for this to work you need a counter column that starts at 1 then 2 and increments by 2 from there. Here is an example:
Book1.xlsm
ABCDEFGH
1wse1-131wse1-13sp554
2sp5542wse1-14sp664
3wse1-144wse1-15sp674
4sp6646000
5wse1-158000
6sp67410000
7
8
9
10
11
Sheet3
Cell Formulas
RangeFormula
F1F1=+OFFSET(A$1,0,0)
G1G1=+OFFSET(A$1,E1,1)
H1H1=+OFFSET(A$1,E1,2)
F2:F6F2=+OFFSET(A$1,E2,0)
G2:G6G2=+OFFSET(A$1,E2+1,1)
H2:H6H2=+OFFSET(A$1,E2+1,2)


Once you have your data organized, you can copy|paste values to make sure it is retained.
 
Upvote 0
You could also:
Select the first column data.
f5, Special and select Blank cells.
Type = then press the up arrow key, and press Ctrl+Enter
Copy the column of data and then paste special - values.
Use an autofilter to delete the rows where the second column is blank.
 
Upvote 0
RoryA........

That little trick could have probably saved me a years worth of time on all the different projects I have done playing with excel over the past 25 years.
I am both excited that I now know it and devastated that I didn't know it before.

Thank you so much!
 
Upvote 0
Yep, it has definitely saved me a lot of time!
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,822
Members
449,096
Latest member
Erald

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