sandramac
asked on
Finding Excel Data
Hello all
Another search question I have this form that I need to extract certain data based on the headers. So the criteria is I need to search from A:AY for "6. File Number" there is data after I need that data in sheet4.a1. then I need to search for "Address of Borrower" and copy the data after thatn in sheet.b1.
Another search question I have this form that I need to extract certain data based on the headers. So the criteria is I need to search from A:AY for "6. File Number" there is data after I need that data in sheet4.a1. then I need to search for "Address of Borrower" and copy the data after thatn in sheet.b1.
ASKER
That didnt work, I have attached a sample form. Basically everything in Bold, I need to be in individual cell son the next sheet.
sample12.xlsx
sample12.xlsx
Well that is a much more complicated set of data to manipulate. I think it will involve searching for each of the merged cells that you want data from and copying them one at a time.
For this example can you show what the desired result should be on the next sheet?
»bp
For this example can you show what the desired result should be on the next sheet?
»bp
ASKER
I have attached what the results should look like.
ASKER
Okay, here is an approach. I created a small function and used it on your sample sheet.
EE29141288.xlsm
»bp
EE29141288.xlsm
»bp
ASKER
Bill I ran it, so I cant get the data for "101. Contract sales price" and beyond it just give me a #value error
Okay, you hadn't listed those in the most recent example of the output you wanted. But you are back to needing all bold items I assume?
Those aren't working because the data is in a different cell than the search text, so I'll have to add some logic and parms to handle that. I'll be back...
»bp
Those aren't working because the data is in a different cell than the search text, so I'll have to add some logic and parms to handle that. I'll be back...
»bp
ASKER
Awesome, thanks Bill, i really appreiciate all the work on this, your a life saver
Okay, this seems to be working here. Some of the ColumnOffset values passed to the GetNamedData() function took a little trial and error due to the heavy usage of merged cells, but I think I got the data you wanted. The beauty of this approach is the one function can gather all the needed data based on related labels, either in the same cell as the data, or in a nearby cell. So if you have additional needs down the road it can still be used by just sending it the proper parms.
EE29141288.xlsm
»bp
EE29141288.xlsm
»bp
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Open in new window
EE29141288.xlsm»bp