I hope I'm able to explain this well. I'm working on a loan report that shows current lending exposure by customer. I am not able to edit the report query at all, so all manipulation has to be done in excel. Because of the nature of the report (some loans are guaranteed by multiple people), each loan number is listed multiple times. I've figured out a way to isolate each loan number once and tie out the overall balance, but doing that required more manual work than I'd prefer, so that's what I'm looking to cut out.
The formula I use to do that is this: =IF(COUNTIF($D$13:D13,D13)=1,L14,"") inserted to the left of the table below so Account Number is column D and Principal Balance is column L.
The main problem with this is that the principal balance in column L only appears once per loan number and not always in the same place (e.g. 1st or 2nd or 3rd row of merged account cell). So if the formula I put in returned "-" I had to look into whether it actually had a $0.00 principal balance or was referring to a blank cell. Because of this, I can't just use fill up/down because it can be both or actually neither because some loans are actually all blank in column L. Example: Loan number takes up merged cells D21-D24 in its first instance. L21-L24 are all blank. But that loan number also appears in cells D54-D57 and there is a value of $100,000 in L56. My formula pulls "-" in D21 and " " in D54, so I manually go to the first instance, search for the loan number, find the principal balance, and copy it into L22.
Is there a way to insert a column next to Column L that has a principal balance filled in in every cell? VLOOKUP seems too limited to do this because account numbers are listed multiple times.
I'm also not glued to using this method. If there's a better way, please let me know. Though I should note here another method was tried by using a pivot table on another tab and was rejected by the powers that be because it's too hard to prove out or test that you are pulling every loan number exactly once.
The formula I use to do that is this: =IF(COUNTIF($D$13:D13,D13)=1,L14,"") inserted to the left of the table below so Account Number is column D and Principal Balance is column L.
The main problem with this is that the principal balance in column L only appears once per loan number and not always in the same place (e.g. 1st or 2nd or 3rd row of merged account cell). So if the formula I put in returned "-" I had to look into whether it actually had a $0.00 principal balance or was referring to a blank cell. Because of this, I can't just use fill up/down because it can be both or actually neither because some loans are actually all blank in column L. Example: Loan number takes up merged cells D21-D24 in its first instance. L21-L24 are all blank. But that loan number also appears in cells D54-D57 and there is a value of $100,000 in L56. My formula pulls "-" in D21 and " " in D54, so I manually go to the first instance, search for the loan number, find the principal balance, and copy it into L22.
Is there a way to insert a column next to Column L that has a principal balance filled in in every cell? VLOOKUP seems too limited to do this because account numbers are listed multiple times.
I'm also not glued to using this method. If there's a better way, please let me know. Though I should note here another method was tried by using a pivot table on another tab and was rejected by the powers that be because it's too hard to prove out or test that you are pulling every loan number exactly once.