Have a large “Input Section” (16 Cols & 500-700 Rows) that has comments scattered throughout it, currently my “Analysis Section” only contains values taken from the “Input Section” using {=IF(SUMPRODUCT,ROWS,INDEX,SMALL………)}
My understanding is that I can’t use a formula to get the “Comments” from the “Input Section” into the corresponding cell in the “Analysis Section”.
What I want to do is get the Values & Comments into the Analysis Section, presently I have to copy/paste "Comments" individually.
Is there a way to do this retrospect fully with VBA from a Command button?
P.S "Comments" dont seem to be appearing on XL2BB, cells with "Fill colour" are ones with Comments
My understanding is that I can’t use a formula to get the “Comments” from the “Input Section” into the corresponding cell in the “Analysis Section”.
What I want to do is get the Values & Comments into the Analysis Section, presently I have to copy/paste "Comments" individually.
Is there a way to do this retrospect fully with VBA from a Command button?
P.S "Comments" dont seem to be appearing on XL2BB, cells with "Fill colour" are ones with Comments
Accounts 2016 - 2019 Final Currant.xlsm | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | ||||||||||||||||
2 | CASH BOOK | |||||||||||||||
3 | DEBITS | |||||||||||||||
4 | Date | Invoice # | Payment Method List | Payment Details List | Bank & Cash | Rent | Power | Motoring Expenses | Stock & Materials | Office | ||||||
5 | ||||||||||||||||
6 | Jul-05 | gs0370 | Direct Debit | Rent | 250.00 | 250.00 | INPUT SECTION All details etc on left are Enterd via a USERFORM, including the comments. It finds the next empty Row & pastes in Userform values, then inserts a new blank row and formats it | |||||||||
7 | Jul-10 | gs0375 | Direct Debit | EDF | 35.00 | 35.00 | ||||||||||
8 | Jul-15 | gs0380 | Debit Card | Micks Garage | 50.00 | 50.00 | ||||||||||
9 | Jul-20 | gs0385 | Debit Card | Halfords | 20.00 | 20.00 | ||||||||||
10 | Jan-21 | gs0390 | Debit Card | Southern Building Supplies | 31.00 | 31.00 | ||||||||||
11 | Jul-22 | gs0415 | Debit Card | Amazon | 42.00 | 42.00 | ||||||||||
12 | Jul-24 | gs0433 | PayPal | Direct Stationary Supplies | 10.00 | 10.00 | ||||||||||
13 | Aug-05 | gs0450 | Direct Debit | Rent | 275.00 | 275.00 | ||||||||||
14 | Aug-10 | gs0460 | Debit Card | Wessex Steel | 40.00 | 40.00 | ||||||||||
15 | Aug-10 | gs0462 | Direct Debit | EDF | 50.00 | 50.00 | ||||||||||
16 | ||||||||||||||||
17 | Totals | 803.00 | 525.00 | 85.00 | 70.00 | 71.00 | 52.00 | |||||||||
18 | ||||||||||||||||
19 | ||||||||||||||||
20 | ANALYSIS SECTION | Rent | EDF | Micks Garage | Halfords | Southern Building Supplies | Wessex Steel | Direct Stationary Supplies | Amazon | |||||||
21 | This section lists all the entries for individual supplier using SUMPRODUCT,ROWS,INDEX,SMALL. It does get bumped down as rows are added above | 250.00 | 35.00 | 50.00 | 20.00 | 31.00 | 40.00 | 10.00 | 42.00 | |||||||
22 | 275.00 | 50.00 | ||||||||||||||
23 | ||||||||||||||||
24 | ||||||||||||||||
25 | This is what I would like the desired outcome to be | Rent | EDF | Micks Garage | Halfords | Southern Building Supplies | Wessex Steel | Direct Stationary Supplies | Amazon | |||||||
26 | 250.00 | 35.00 | 50.00 | 20.00 | 31.00 | 40.00 | 10.00 | 42.00 | ||||||||
27 | 275.00 | 50.00 | ||||||||||||||
Testing (2) |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F17:K17 | F17 | =SUM(F6:F15) |
G21:N22 | G21 | =IF(SUMPRODUCT(--($E$5:$E$15=G$20))>=ROWS(G$21:G21),INDEX($F$5:$F$15,SMALL(IF($E$5:$E$15=G$20,ROW($E$5:$E$15)-ROW($E$5)+1),ROWS(G$21:G21))),"") |
Press CTRL+SHIFT+ENTER to enter array formulas. |