VBA to EXTRACT & LOOP

shahzeb123

Board Regular
Joined
Jul 29, 2021
Messages
61
Office Version
  1. 2016
Platform
  1. Windows
Guys I am Back !

I have tried CHATGPT to write the code but it is only stupid code that does not work.

Now, my query is i need a code that needs to go to cell A31 then find "F57A" then find BKCH when it finds this then start extracting from BKCH till 11 digits only.

Then skip to A68 and do the same thing and paste the data in column L

Meaning it needs to extract data from A31 then skip 37 rows and do the same thing then again again till there is no data

PLEASE HELP :(
 
Hi
need one more help in the same query

From the same field i need to extract the highlighted points into column M and N

it is not definate that how much length will be there on every filed but it will be written in line


1677652221276.png
 
Upvote 0

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.
Hi
need one more help in the same query

From the same field i need to extract the highlighted points into column M and N

it is not definate that how much length will be there on every filed but it will be written in line


View attachment 86482
It may be the same data set you are working with, but it is a new question (very different from the first).
As such, it would be better to post the question to a new thread, so it appears as a new unanswered question, and you will get more looks (since it will show up on the "Unanswered threads" list), and a greater chance of getting an answer.

So please post this question to a new thread.
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,603
Members
452,658
Latest member
GStorm

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