Pulling loan # for specific employees into a different sheet.

Cyndi2210

New Member
Joined
Jul 12, 2018
Messages
17
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am trying to show the value from the "Description" column from the "Loans" sheet into the "Data" sheet for the specific employee. Type 401L should populate Loan ID 1 and 401L2 should populate Loan ID 2. Any person without a loan should display as blank.

Thanks in advance for your help.
 

Attachments

  • Example.jpg
    Example.jpg
    135.5 KB · Views: 8
I just found a mistake in the Data sheet I had. I had Loan ID 1 in column B and not Column P
maybe this will work for you:
Book1
APQRS
1Employee #Loan ID 1Loan Payment 1Loan ID 2Loan Payment 2
21028047821.34 
3198  
4202804795.75 
5216  
622080484 
72878048821.07 
86098047226.780473
9665  
1070580465103.180464
1114098048626.22 
1215868046270.038046323.36
1327098047738.818047635.18
1438898046640.5180467147.49
1546768048215.488048334.96
165112  
17523980485111.59 
18774180480156.1480481166.21
198018  
2081468047032.45 
2184188046837.838046977
2288698047426.62 
238883  
2490458047142.69 
2593588047574.82 
Data
Cell Formulas
RangeFormula
P2:P25,R2:R25P2=IFERROR(INDEX(Loans!$D$2:$D$27,MATCH($A2&IF(P$1="Loan ID 1","401L","401L2"),Loans!$A$2:$A$27&Loans!$B$2:$B$27,0)),"")
 
Upvote 0
Solution

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
I started a new worksheet used the copy feature in the upper right hand corner of your worksheet in Post #4, then I tried to create the pages as you mentioned above. It didn't work. So then I took your suggestion to just paste it into a new workbook and the highlighted columns were blank. I just hit Ctrl+V when I pasted in both times. The formulas are there. My cursor is in B4.

FYI, when I remove the IFERROR & ,"") I get a #Value! Error


1707949652535.png
 
Last edited:
Upvote 0
I can't tell if you copied the formulas down from B4 to B27 and D4 to D27.

If you did, have you used the EVALUATE FORMULA tool on the Formula Ribbon to step through the calculation.

You can also debug one step at a time (using your worksheet posted in the image in Post #12), in B4 by slowly building up your formula by testing each of these sub subsections
(no guarantee this is typo free - but I hope you understand what I'm asking you to do):
1. Match($A4,$H$:$H$29,0) drag it down to confirm you're getting matches, if you're not then the data has some non printing characters.
2. Match("401L",$I$4:$I$I29,0), drag, confirm you have matches.
3. IF(B$3="Loan ID 1","401L","401L2"), drag, confirm, if no match then B3 has some non printing characters in it, retype "Loan ID 1" into the B3, see if it matches.
4. Match(IF(B$3="Loan ID 1","401L","401L2"),$I$4:$I$I29,0), drag, confirm you get some appropriate hits (you may get 401L2 numbers if it is not correct).
5. Match($A4&IF(B$3="Loan ID 1","401L","401L2"),$H$4:$H$29&$I$4:$I$29,0), drag, confirm you get appropriate hits.
6. INDEX($K$4:$K$29,Match($A4&IF(B$3="Loan ID 1","401L","401L2"),$H$4:$H$29&$I$4:$I$29,0),0), drag, confirm
7. IFERROR(INDEX($K$4:$K$29,Match($A4&IF(B$3="Loan ID 1","401L","401L2"),$H$4:$H$29&$I$4:$I$29,0),0),""), drag, confirm
8. Copy to column D, drag confirm.
 
Upvote 0
I can't tell if you copied the formulas down from B4 to B27 and D4 to D27.

If you did, have you used the EVALUATE FORMULA tool on the Formula Ribbon to step through the calculation.

You can also debug one step at a time (using your worksheet posted in the image in Post #12), in B4 by slowly building up your formula by testing each of these sub subsections
(no guarantee this is typo free - but I hope you understand what I'm asking you to do):
1. Match($A4,$H$:$H$29,0) drag it down to confirm you're getting matches, if you're not then the data has some non printing characters.
2. Match("401L",$I$4:$I$I29,0), drag, confirm you have matches.
3. IF(B$3="Loan ID 1","401L","401L2"), drag, confirm, if no match then B3 has some non printing characters in it, retype "Loan ID 1" into the B3, see if it matches.
4. Match(IF(B$3="Loan ID 1","401L","401L2"),$I$4:$I$I29,0), drag, confirm you get some appropriate hits (you may get 401L2 numbers if it is not correct).
5. Match($A4&IF(B$3="Loan ID 1","401L","401L2"),$H$4:$H$29&$I$4:$I$29,0), drag, confirm you get appropriate hits.
6. INDEX($K$4:$K$29,Match($A4&IF(B$3="Loan ID 1","401L","401L2"),$H$4:$H$29&$I$4:$I$29,0),0), drag, confirm
7. IFERROR(INDEX($K$4:$K$29,Match($A4&IF(B$3="Loan ID 1","401L","401L2"),$H$4:$H$29&$I$4:$I$29,0),0),""), drag, confirm
8. Copy to column D, drag confirm.
It turns out it was a version issue. The IT person upgraded my system to 365 & the formula worked perfectly.

Thanks so much for sticking with me.
 
Upvote 0
It turns out it was a version issue. The IT person upgraded my system to 365 & the formula worked perfectly.

Thanks so much for sticking with me.
What version did you have before? The functions in the formulas I had given have been around since Excel 2007 or 2010.
Regardless, I'm happy you got your formula working.

Best wishes!
 
Upvote 0
What version did you have before? The functions in the formulas I had given have been around since Excel 2007 or 2010.
Regardless, I'm happy you got your formula working.

Best wishes!
I had 2016, but I also had a VLookup that was not working. One of my co-workers running 365 tried it on her machine & it worked.
 
Upvote 0
I had 2016, but I also had a VLookup that was not working. One of my co-workers running 365 tried it on her machine & it worked.
Okay, maybe there was something wrong with the installation or an update that took some functionality out. But now you have a much better tool kit! Update your profile here to say you have 365. There is so much you'll be able to do. Just learning the LET () function will make your excel life much better!
 
Upvote 0
FYI: I'm running Excel 2007, and the formulas from post#11 only worked for me after array entry.
 
Upvote 0
FYI: I'm running Excel 2007, and the formulas from post#11 only worked for me after array entry.
That's good to know. But, surprising. The functions IFERROR, IF, MATCH, and INDEX. Match and Index have been around for decades. IFERROR became available in 2007. I wonder what makes it think it is an array formula. Very interesting. Maybe it is the concatenated arguments in the MATCH function, but, I was doing that in 2003.
 
Upvote 0
That's good to know. But, surprising. The functions IFERROR, IF, MATCH, and INDEX. Match and Index have been around for decades. IFERROR became available in 2007. I wonder what makes it think it is an array formula. Very interesting. Maybe it is the concatenated arguments in the MATCH function, but, I was doing that in 2003.
My guess was the concatenated ranges as well.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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