Take two criteria and compare across two sheets

RoseR12

New Member
Joined
Oct 12, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I have a sheet of balances and a sheet of spends. The sheet of balances has a column for each name and a row for each date. The sheet of spends is a list in order of date of each spend with each row indicating a name, date and spend. The list includes a name multiple times (one for every date they spent on). If I want to do calculations based on the data for both balance and spend for each name how would I get excel to understand that when I refer to a name and date in one sheet I also want to refer to that same name and date in the other sheet to take both spend and balance for the name and date. Or is there a quick way to make a new list with both spend and balance for each name and date?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Please provide us with some sample data and a mocked up solution. Use the XL2BB function on this site to upload that sample data.
 
Upvote 0
NameDateSpend
Charles15/06/202010000
Andrew15/06/20201000
Elizabeth18/06/20205000
Elizabeth27/09/202020000
 
Upvote 0
and a second sheet with:
Example.xlsx
ABCD
1DateCharlesAndrewElizabeth
214/06/202010000030000200000
315/06/202012000020000150000
427/09/20209000040000100000
Balance
 
Upvote 0
What do you want the results to look like for the information provided. Mock it up so that we understand exactly what you are looking for as asked earlier.
 
Upvote 0
Sorry didn't see the mockup of solution bit.

Well I've made a drop down list like in the mockup i've attached. I also would like to know how to make the drop down list only show unique names from the list of names as each name appears multiple times. I want to be able to select a name and then for it to show me the calculations based on spends shown in J3:N6 in my mockup but just for the name selected in drop down list. In the mockup I have only made it able to show me the data in the table from A1:C5 for that name using the filter function.

I also want it to show the average spend/balance ratio for that name something like how I've formatted in J8 where the average spend/balance ratio is the average of the spend divided balance for each day. I'd then also like to calculate an overall average spend/balance ratio outside of the drop down list which isnt for every person individually but for all the data. I'm sorry I don't know how to use the balance data to show this properly in my mockup. Ideally this would all be on its own seperate worksheet without having all the data in that sheet.

If you can help at all that would great as I'm sure you can tell I am a beginner.

Example.xlsx
ABCDEFGHIJKLMN
1NameDateSpend
2Charles15/06/202010000Name:
3Andrew15/06/20201000ElizabethElizabeth18/06/20205000PercentileValueAverage Above ValueNo. Of Days Above ValueSpend Difference
4Elizabeth18/06/20205000Elizabeth27/09/2020200001%19700200001300
5Elizabeth27/09/2020200005%185002000011500
610%170002000013000
7
8Spend/Balance Ratio:
Spend
Cell Formulas
RangeFormula
F3:H4F3=FILTER(A2:C5, A2:A5=E3)
K4K4=PERCENTILE.INC($C$2:$C$5, 0.99)
L4:L6L4=AVERAGEIF($C$2:$C$5, ">" & K4)
M4:M6M4=COUNTIF($C$2:$C$5, ">" & K4)
N4:N6N4=L4-K4
K5K5=PERCENTILE.INC($C$2:$C$5, 0.95)
K6K6=PERCENTILE.INC($C$2:$C$5, 0.9)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
A2:A5List=$A$2:$A$5
 
Upvote 0

Forum statistics

Threads
1,215,005
Messages
6,122,661
Members
449,091
Latest member
peppernaut

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