VBA - Extraction in loop from specified cell

shahzeb123

Board Regular
Joined
Jul 29, 2021
Messages
61
Office Version
  1. 2016
Platform
  1. Windows
Hi everyone

I ahve tried BARD CHATGPT COPILOT everyting but does not able to resolve my problem, i have sheet from which i need extract specifed line into new sheet.

in CELL A31 it has to finds F61 then go below and copy the data before ":" and make a header in new sheet
then copy the data after the ":" and paste it below the header
then do the same thing till u find F86
then again look for F61 if it is there do the same thing
and if no F61 is found then jump down to 40 rows to CELL A71 and do the same thing then again jump to 40 rows

DATA look like this
1703849141063.png
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You might find it easier to process your data if you use text to columns splitting it on the ":" symbol
 
Upvote 0
I cant us that because i have a big data sheet starting from row 31 and after skipping every 40 row. Need u help for writing a vba code to extract data in to new sheet
 
Upvote 0

Forum statistics

Threads
1,215,143
Messages
6,123,274
Members
449,093
Latest member
Vincent Khandagale

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