Capture specific data from report

richmcgill

Board Regular
Joined
Feb 4, 2019
Messages
71
Office Version
  1. 2016
Platform
  1. Windows
I need a way to capture the following pieces of information from the following report. The report evolves from the top format to the format at the bottom but the goal does not change.

Throughout this thirty page daily report is has the 10 digit loan number and the "Last-UPD-USER-ID with the user ID just under this field.

Loan # 0001234567 the LAST-UPD-USR-ID was changed by ARS.
Loan # 0002345678 the LAST-UPD-USR-ID was changed by DCT
Loan # 000345789 the LAST-UPD-USR-ID was changed by FZV

I need the loan number with the USR ID. How do I capture and pair these portions of the report?

All I need is the loan number and the user ID. The user IDs change so I do not have a way to create a table of users.

Can this be accomplished without a MACRO? If not I can try to figure out how to implement a MACRO.

Top portion of the report
1612747998465.png


Bottom portion of the same report.
1612747738486.png
 

Attachments

  • 1612747461273.png
    1612747461273.png
    38.6 KB · Views: 4
  • 1612747528716.png
    1612747528716.png
    22.4 KB · Views: 4
  • 1612747696746.png
    1612747696746.png
    39.1 KB · Views: 3

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi,

Not entirely sure I understand your requirements, maybe something like this?

Formula copied down:

Book3.xlsx
AB
1 0001234567 504 001 LAST-UPD-USER-ID0001234567, ARS
2 @WKS ARS ARS 
Sheet744
Cell Formulas
RangeFormula
B1:B2B1=IF(ISNUMBER(LEFT(TRIM(A1),10)+0),LEFT(TRIM(A1),10)&", "&TRIM(MID(SUBSTITUTE(TRIM(A2)," ",REPT(" ",100)),200,100)),"")
 
Last edited:
Upvote 0
One problem has come up. What you showed me above was perfect. The challenge I have is when there is an extra zero on a line.
Looking at the loan number 0002345678 it does not have a zero in front of it.
Looking at 0006482468 it has a zero in front of it. This zero is causing no results to appear.

If you can ignore the zero or figure out how to incorporate it into the loan number that works as well or whatever solution you think might be best?
 

Attachments

  • Annotation 2021-02-08 140049.jpg
    Annotation 2021-02-08 140049.jpg
    137.7 KB · Views: 3
Upvote 0
Works perfectly. Thank you!!!

You're welcome.

One problem has come up. What you showed me above was perfect. The challenge I have is when there is an extra zero on a line.
Looking at the loan number 0002345678 it does not have a zero in front of it.
Looking at 0006482468 it has a zero in front of it. This zero is causing no results to appear.

If you can ignore the zero or figure out how to incorporate it into the loan number that works as well or whatever solution you think might be best?

Try this version:

Book3.xlsx
AB
1 0001234567 504 001 LAST-UPD-USER-ID0001234567, ARS
2 @WKS ARS ARS 
3 0 0006482468 504 002 LAST-UPD-USER-ID0006482468, DCT
4 FIXD DCT DCT 
5 0 abc def ghi 
600 123 456 789 
7 0 00 789 abc 
Sheet744
Cell Formulas
RangeFormula
B1:B7B1=IF(ISNUMBER(IF(MID(TRIM(A1),2,1)=" ",MID(TRIM(A1),3,10),LEFT(TRIM(A1),10))+0),IF(MID(TRIM(A1),2,1)=" ",MID(TRIM(A1),3,10),LEFT(TRIM(A1),10))&", "&TRIM(MID(SUBSTITUTE(TRIM(A2)," ",REPT(" ",100)),200,100)),"")


EDIT: I just noticed that the "Bottom" portion of your report has 11 digit Loan Numbers, is that correct? How should those be handled?
 
Last edited:
Upvote 0
It is not really an 11 digit loan number but rather a code specifying a condition of the loan and then a space and then the loan number.

The extra digit is not an important number. All I need is the 10 digit loan number.

If it helps place the number (a lot of times blank) in a cell, the loan number in a cell and the user ID in a cell.

Add the number to the loan number and then it can be separated later?
 
Upvote 0
My post #5 formula already took care of that, see the sample in Post #5 Table, Cell A3.

I'm questioning what you have in OP (post #1), "Bottom portion of the same report"
The very first loan number 00003456789 is 11 digits.
 
Upvote 0
Solution
You're welcome, glad it's working for you.
 
Upvote 0

Forum statistics

Threads
1,215,773
Messages
6,126,821
Members
449,340
Latest member
hpm23

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