Hi,
I'm new to in depth Excel calculations and I can't seem to figure out how to do this.
I've got a spreadsheet with over 4000 rows of data regarding financial application details. This data is then split over 13 columns. I need to be able to automate a report that interrogates the data in Cell D and pulls out all the row data of cases that meet the criteria "KFIComplete."
I've tried using Pivot Tables with a slicer but the generated report formatting is completely wrong and I've tried a VBA button program but all this did was flick between the sheets at high speed before crashing the spreadsheet.
Here's what I've got -
And here's what I need to see in a separate worksheet -
The report needs to be updatable so that when I add new account data to the Raw Data, it'll continue to split out the cases at KFIComplete stage.
This is the VBA I've tried that crashed my worksheet -
Private Sub CommandButton1_Click()
a = Worksheets("Raw Data Sheet").Cells(Rows.Count, 1).End(xlUp).Row
For i = 2 To a
If Worksheets("Raw Data Sheet").Cells(i, 4).Value = "KFIComplete" Then
Worksheets("Raw Data Sheet").Rows(i).Copy
Worksheets("KFI Data Only").Activate
b = Worksheets("KFI Data Only").Cells(Rows.Count, 1).End(xlUp).Row
Worksheets("KFI Data Only").Cells(a + 3, 1).Select
ActiveSheet.Paste
Worksheets("Raw Data Sheet").Activate
End If
Next
Application.CutCopyMode = True
ThisWorkbook.Worksheets("Raw Data Sheet").Cells(1, 1).Select
End Sub
Can anyone give me a hand to understand what I'm doing wrong?
Thanks!
I'm new to in depth Excel calculations and I can't seem to figure out how to do this.
I've got a spreadsheet with over 4000 rows of data regarding financial application details. This data is then split over 13 columns. I need to be able to automate a report that interrogates the data in Cell D and pulls out all the row data of cases that meet the criteria "KFIComplete."
I've tried using Pivot Tables with a slicer but the generated report formatting is completely wrong and I've tried a VBA button program but all this did was flick between the sheets at high speed before crashing the spreadsheet.
Here's what I've got -
Account Number | Customers Names | TotalApplicants | StatusNameId | Broker Name | MaxLoanAmount | InitialLoanAmountRequested | CustomerRequestedFacility | LoanToValue | VariantCode | ProductCategory | ProductName | ApplicationDate |
111 | John Smith | 1 | KFIComplete | Tim Nelson | 360000 | 10000 | 600000 | 15% | N/A | OPEN | 1 | 16/09/2019 |
222 | Kieran Walker | 1 | Complete | Tim Nelson | 385000 | 23000 | 700000 | 17% | N/A | OPEN | 2 | 14/10/2019 |
333 | Tina Hughes | 1 | Inprogress | Tim Nelson | 482000 | 48000 | 920000 | 23% | N/A | OPEN | 6 | 20/05/2019 |
444 | Judd Apatow | 1 | KFIComplete | Tim Nelson | 156000 | 23600 | 1580000 | 23% | N/A | OPEN | 3 | 08/09/2020 |
555 | Craig Howe | 1 | Declined | Tim Nelson | 224000 | 90000 | 1480000 | 29% | N/A | OPEN | 5 | 30/09/2019 |
666 | Linda Marting | 1 | KFIComplete | Tim Nelson | 102000 | 20000 | 25600 | 42% | N/A | OPEN | 2 | 09/07/2020 |
777 | Justine Smith | 1 | Inprogress | Tim Nelson | 985000 | 198000 | 489000 | 12% | N/A | OPEN | 1 | 15/03/2020 |
888 | Howard Bilson | 1 | Complete | Tim Nelson | 420000 | 42000 | 458888 | 5% | N/A | OPEN | 6 | 15/05/2019 |
999 | Shirly Trapp | 1 | Complete | Tim Nelson | 690000 | 12000 | 15680 | 2.80% | N/A | OPEN | 3 | 03/07/2019 |
And here's what I need to see in a separate worksheet -
111 | John Smith | 1 | KFIComplete | Tim Nelson | 360000 | 10000 | 600000 | 15% | N/A | OPEN | 1 | 16/09/2019 |
444 | Judd Apatow | 1 | KFIComplete | Tim Nelson | 156000 | 23600 | 1580000 | 23% | N/A | OPEN | 3 | 08/09/2020 |
666 | Linda Marting | 1 | KFIComplete | Tim Nelson | 102000 | 20000 | 25600 | 42% | N/A | OPEN | 2 | 09/07/2020 |
The report needs to be updatable so that when I add new account data to the Raw Data, it'll continue to split out the cases at KFIComplete stage.
This is the VBA I've tried that crashed my worksheet -
Private Sub CommandButton1_Click()
a = Worksheets("Raw Data Sheet").Cells(Rows.Count, 1).End(xlUp).Row
For i = 2 To a
If Worksheets("Raw Data Sheet").Cells(i, 4).Value = "KFIComplete" Then
Worksheets("Raw Data Sheet").Rows(i).Copy
Worksheets("KFI Data Only").Activate
b = Worksheets("KFI Data Only").Cells(Rows.Count, 1).End(xlUp).Row
Worksheets("KFI Data Only").Cells(a + 3, 1).Select
ActiveSheet.Paste
Worksheets("Raw Data Sheet").Activate
End If
Next
Application.CutCopyMode = True
ThisWorkbook.Worksheets("Raw Data Sheet").Cells(1, 1).Select
End Sub
Can anyone give me a hand to understand what I'm doing wrong?
Thanks!