How to display data with a filter?

Nelly3007

New Member
Joined
Jan 16, 2020
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I have a spreadsheet with a record of orders and each order is allocated to a certain cost code (indicates which department is paying for the order) and a certain GL category (indicates which budget the money is coming from).

It also has a separate tab of all the budgets, so each cost code and GL code has a budget that can be spent each month.

I am looking to have a bit more visibility of what has been spent each month and what's left so was wondering if its possible to display the data from the Orders tab on a separate sheet and then filter by cost code, GL code and month, so for example, we can view how much has been spent on cost E81000 in R&M for the month of January. But then (and this is why I'm stuck) I'd also like to view how much is left in that budget, so view what's already been spent under E81000, R&M, January, and then also see how much is left from the budget (taken from the 'budget' tab), and also have the budget/what's left correspond to whatever filter we have on. So if we were to switch the filter to see what's been spent under E82000, Plant Hire, February and then the 'what's left' bit will update as well.

The 'month' will come from column C 'GR Month' and the amount spent will be column L 'Real spend'.

I hope that makes some sort of sense.....

I cannot upload a mini spreadsheet as my company IT has blocked the necessary app but I do have a test spreadsheet here: Costs Template.xlsx

This has got minimal data on it but we do actually have 12 cost codes which each have 12 GL categories so in total we've got 144 different budgets to monitor.

Thanks so much to anyone that can make sense of that and offer any help :)
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try.
The first table shows the splent.
Cell Formulas
RangeFormula
B3:M14B3=SUMIFS(Table2[Real cost],Table2[Cost Code],$B$1,Table2[GL Code],B$2,Table2[Month],$A3)


The 2nd table shows the left.
Costs Template.xlsx
ABCDEFGHIJKLM
1Cost codeE81000
2GL codeR&MPlant hireOtherOther 2Other 3other 4Other 5Other 6Other 7Other 8other 9Other 10
3Jan£8,400.00£25,000.00£4,400.00£2,000.0000000000
4Feb£25,000.00£2,000.00£2,400.00£4,000.0000000000
5Mar£29,400.00£30,000.00£30,000.00£30,000.0000000000
6Apr000000000000
7May000000000000
8Jun000000000000
9Jul000000000000
10Aug000000000000
11Sep000000000000
12Oct000000000000
13Nov000000000000
14Dec000000000000
Left
Cell Formulas
RangeFormula
B3:M14B3=Budgets!B3-Spent!B3
 
Upvote 0
Hello All,

I have a spreadsheet with a record of orders and each order is allocated to a certain cost code (indicates which department is paying for the order) and a certain GL category (indicates which budget the money is coming from).

It also has a separate tab of all the budgets, so each cost code and GL code has a budget that can be spent each month.

I am looking to have a bit more visibility of what has been spent each month and what's left so was wondering if its possible to display the data from the Orders tab on a separate sheet and then filter by cost code, GL code and month, so for example, we can view how much has been spent on cost E81000 in R&M for the month of January. But then (and this is why I'm stuck) I'd also like to view how much is left in that budget, so view what's already been spent under E81000, R&M, January, and then also see how much is left from the budget (taken from the 'budget' tab), and also have the budget/what's left correspond to whatever filter we have on. So if we were to switch the filter to see what's been spent under E82000, Plant Hire, February and then the 'what's left' bit will update as well.

The 'month' will come from column C 'GR Month' and the amount spent will be column L 'Real spend'.

I hope that makes some sort of sense.....

I cannot upload a mini spreadsheet as my company IT has blocked the necessary app but I do have a test spreadsheet here: Costs Template.xlsx

This has got minimal data on it but we do actually have 12 cost codes which each have 12 GL categories so in total we've got 144 different budgets to monitor.

Thanks so much to anyone that can make sense of that and offer any help :)
Initially for the first objective.

I've put the data in a table called tblOrders on a sheet called Orders.

On a sheet called Report I have three drop down validation lists that enable you to display a filtered list of the orders table.

There are many tweaks that can be made to this but is this the sort of thing that you are after.

The lists on the right that form the data for the validation lists can be on another sheet.

Book1
BCDEFGHIJKLMNOPQ
1Date raiisedGR MonthCompanyRaised ByRETRO ORDERSReq NoPO NoGR NoQuote numberCostReal costCost CodeGL CodeAuthorised ByReceivedCOMMENTS
203/01/2024GHLeeNO10150511£1,000.00£1,000.00E81000R&MLeeCOMPLETERemove flooring and modify
303/01/2024DWSGemmaNO10250522£2,000.00£2,000.00E82000R&MGemmaCOMPLETEClean Gauges July - Dec
405/01/2024MetoCallumNO10350533£3,000.00£3,000.00E83000Plant HireCallumMonthly service visits
508/01/2024RobinsCallumNO10450544£1,500.00£1,500.00E84000Plant HireCallumFabrication and installation of 2x bunkers
608/01/2024MQPCLeeYes10550555£600.00£600.00E81000OtherLeeCOMPLETEAudit
710/02/2024MQPCLeeYes10650566£600.00£600.00E81000OtherLeeCOMPLETE2nd Audit
810/03/2024MQPCLeeYes10750577£600.00£600.00E81000R&MLeeCOMPLETE3rd Audit
910/04/2024VulcsLeeNo100236589420056897850565048968£200.00E81000R&MLeeCANCELLEDWork
Orders


Book1
ABCDEFGHIJK
1
2Lists for drop down validation.
3MonthCost CodeGL CodeCost CodesGL CodeMonths
4January 2024E83000Plant Hire
5E81000OtherJanuary 2024
6E83000Plant Hire3000E82000Plant HireFebruary 2024
7E83000R&MMarch 2024
8E84000April 2024
9
10
11
12
13
Report
Cell Formulas
RangeFormula
H4:H8H4=VSTACK(" ",SORT(UNIQUE(tblOrders[Cost Code])))
I4:I7I4=VSTACK(" ",SORT(UNIQUE(tblOrders[GL Code])))
J4:J8J4=VSTACK(" ",LET(d,SORT(tblOrders[Date raiised],1),UNIQUE(TEXT(d,"MMMM YYYY"))))
B6:D6B6=IFERROR(CHOOSECOLS(FILTER(tblOrders,(TEXT(tblOrders[Date raiised],"MMMM YYYY")=$B$4)*(tblOrders[Cost Code]=Report!$C$4)*(tblOrders[GL Code]=Report!$D$4)),{13,14,12}),"No Records To Show")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B4List=$J$4#
C4List=$H$4#
D4List=$I$4#
 
Upvote 0

Forum statistics

Threads
1,226,466
Messages
6,191,196
Members
453,646
Latest member
SteenP

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