OFFSET Formula for Multiple Rows

pyroto

New Member
Joined
Jun 21, 2018
Messages
16
I am slightly familiar with the OFFSET formula.
I would like to extract the data from Column B into Column F in that order, skip rows and do the same for the data for Tina Fey, etc..
Possibly one continuous formula?
Is this possible?

ABCDEF
1CLIENT INFO
2NameBob RossDate6/11/2018
3ItemPaint BrushesStoreStore 325
4Cost$4.25NameBob Ross
5Discount$2.00ItemPaint Brushes
6StoreStore 325Cost$4.25
7Date6/11/2018Discount$2.00
8
9
10
11
12
13
14
15
16NameTina FeyDate6/15/2018
17ItemMicrophoneStoreStore 423
18Cost$99.99NameTina Fey
19Discount$15.00ItemMicrophone
20StoreStore 423Cost$99.99
21Date6/15/2018Discount$15.00
22
23
24
25
26
27
28

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You could do something like this:

ABCDEF
1CLIENT INFO
2NameBob RossDate43262
3ItemPaint BrushesStoreStore 325
4Cost$4.25 NameBob Ross
5Discount$2.00 ItemPaint Brushes
6StoreStore 325Cost4.25
7Date6/11/2018Discount2
8
9
10
11
12
13
14
15
16NameTina FeyDate43266
17ItemMicrophoneStoreStore 423
18Cost$99.99 NameTina Fey
19Discount$15.00 ItemMicrophone
20StoreStore 423Cost99.99
21Date6/15/2018Discount15

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
F2=IF(E2="","",INDEX(OFFSET($B:$B,LOOKUP(2,1/(A$1:A1=""),ROW(A$1:A1)),0,6),MATCH(E2,OFFSET($A:$A,LOOKUP(2,1/(A$1:A1=""),ROW(A$1:A1)),0,6),0)))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Note that you have some formatting issues. You could handle those with 2 Conditional Formatting rules. The first would say, "if the value in column E is 'Date', format column F as a date", and the second one would say, "if the value in E is "Cost" or "Discount", then format as an amount."
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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