Fetch Value Available on Same Interval

Rahulwork

Active Member
Joined
Jun 9, 2013
Messages
284
Hello Everyone,

I have a sheet contain lots of value in rows. please find below for example:

if you see , difference between Fruit and Place is equal i mean 3 rows
Same Apple and America has same interval i e 3 rows

I want Fruit in B1 and Place in B2
and in front of B1 it should be apple in C1 and America in C2.. so on...

Pls help me and thanks in advance

ABC
1Fruit
2Red
3Apple
4
5Place
6West
7America
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Do you need something like this?

Book1
ABC
1FruitFruitApple
2RedPlaceAmerica
3ApplesomeXX
4Other yy
5Place
6West
7America
8
9someX
10color
11X
12
13Other y
14color
15y
sheet


Try:
VBA Code:
Sub Fetch_Value()
  Dim i As Long, j As Long
  j = 1
  For i = 1 To Range("A" & Rows.Count).End(xlUp).Row Step 8
    Range("B" & j).Resize(2, 1).Value = Application.Transpose(Array(Range("A" & i).Value, Range("A" & i + 4).Value))
    Range("C" & j).Resize(2, 1).Value = Application.Transpose(Array(Range("A" & i + 2).Value, Range("A" & i + 6).Value))
    j = j + 2
  Next
End Sub
 
Upvote 0
You can put here the example you used with the macro.
What result did the macro put?
What result should it be?

Use the xl2BB tool to see exactly in which cells you have the information.
Upload an excel range:
XL2BB - Excel Range to BBCode
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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