Drop Down Capability question

NinaE_11

Board Regular
Joined
Aug 18, 2020
Messages
54
Office Version
  1. 2016
Platform
  1. Windows
Hello,
I keep a table of quarter end market values with about 50 different data points. In the past, I've created a new workbook for every quarter, but I'd like to simplify it by keeping four calendar quarters in one worksheet, if possible. My idea is to somehow utilize a dropdown list in cell A1 so you can select Q1, Q2, Q3 and Q4 and then have the datapoints in my table update to reflect appropriate quarter end data. However, I'm not sure how to even attempt to start this. Would it require writing VBA code or macros? Would anybody have any advice on how to get started with this project?

Thank you!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi NinaE_11,

Yes, that sounds a better design. You could do almost anything with VBA but if you want to avoid it then you can use functions to retrieve matching data from another sheet, using SMALL function o AGGREGATE to only pull selected data.

Does your data contain the actual quarter number or just a date?
Why not use one sheet for all years as well as quarters?

If you can give an example of your data I'll dummy up a sheet.
 
Upvote 0
Hi NinaE_11,

Yes, that sounds a better design. You could do almost anything with VBA but if you want to avoid it then you can use functions to retrieve matching data from another sheet, using SMALL function o AGGREGATE to only pull selected data.

Does your data contain the actual quarter number or just a date?
Why not use one sheet for all years as well as quarters?

If you can give an example of your data I'll dummy up a sheet.
I would love to combine all years/quarters! Baby steps... :) Not opposed to using VBA, but maybe functions could get me started and I could work off of it from there? This is a sample of what I maintain each quarter. Ideally, I could utilize a blank cell and provide a dropdown list for user to select which quarter they would like to view, and have all these values reflect that ending date market value. I use various SUM, IF, SUMIFs formulas to pull from a master list of account names and values at each quarter end. Date is in 9/30/20 format. Is this helpful?

Total Firm Assets (TFA)
SmallSMIDOutside
CapCapCompositeTotals
Accts (#)152320
Assets ($)$629.7$49.2$8.7$687.5
% of AUM91.6%7.2%1.3%100.0%
Tax ExemptTaxable
SmallSMIDOutsideSmallSMIDOutside
CapCapCompositeSub-Total% of AUMCapCapCompositeSub-Total% of AUM
#922136017
$$551.9$49.2$4.0$605.188.0%$77.7$0.0$4.6$82.412.0%
Client Type
Sub-TotalTotals
Public#520735%00000%35%
Public$$447.4$49.2$0.0$496.672.2%$0.0$0.0$0.0$0.00%72.2%$496.6
Corporate#200210%00000%10%
Corporate$$77.5$0.0$0.0$77.511.3%$0.0$0.0$0.0$0.00%11.3%$77.5
Personal#002210%401525%35%
Personal$$0.0$0.0$4.0$4.00.6%$63.1$0.0$4.6$67.810%10.4%$71.8
Sub-Adv#10015%00000%5%
Sub-Adv$$23.2$0.0$0.0$23.23.4%$0.0$0.0$0.0$0.00%3.4%$23.2
PrivateFund#00000%200210%10%
PrivateFund$$0.0$0.0$0.0$0.00%$14.6$0.0$0.0$14.62%2.1%$14.6
CIT#1001100%00000%100%
CIT$$3.9$0.0$0.0$3.90.6%$0.0$0.0$0.0$0.00%0.6%$3.9
$687.5
 
Upvote 0
You don't say how your quarters are calculated so I've done a lookup table. Obviously you also need to specify the year you want to that table is in tab "FYQtrs"

NinaE_11.xlsx
ABC
1FYQtrStartEnd
22018-Q101-Jan-1831-Mar-18
32018-Q201-Apr-1830-Jun-18
42018-Q301-Jul-1830-Sep-18
52018-Q401-Oct-1831-Dec-18
62019-Q101-Jan-1931-Mar-19
72019-Q201-Apr-1930-Jun-19
82019-Q301-Jul-1930-Sep-19
92019-Q401-Oct-1931-Dec-19
FYQtrs
Cell Formulas
RangeFormula
C2:C9C2=EOMONTH(B2,2)
B3:B9B3=C2+1


Here's the dummy data I used: in tab "Data":

NinaE_11.xlsx
ABCDE
1AccountSizeCompositeDateValue
2XC6SmallInside1/3/2018 $ 166
3XC9SMIDOutside1/25/2018 $ 189
4XC12SMIDOutside1/25/2018 $ 327
5XC15LargeOutside2/16/2018 $ 212
6XC18SmallOutside3/10/2018 $ 373
7XC21SmallOutside5/5/2018 $ 235
8XC24SMIDOutside5/27/2018 $ 258
9XC27SMIDOutside6/16/2018 $ 350
10XC30SMIDOutside6/16/2018 $ 396
11XC33SMIDOutside1/4/2019 $ 281
12XC36SMIDInside1/24/2019 $ 419
13XC39SmallInside8/14/2019 $ 304
Data


On the "Summary" tab I've done the dropdown then retrieved the Start/End dates for that quarter so they're used to select using SUMIFS, COUNTIFS, etc.

NinaE_11.xlsx
ABCDEFGHIJ
1FYQtrStart DateEnd DateTotal Firm Assets (TFA)
22018-Q201-Apr-1830-Jun-18SmallSMIDOutside
3CapCapCompositeTotals
4Accts (#)1348
5Assets ($)$235.00 $1,004.00 $1,239.00 $2,478.00
Summary
Cell Formulas
RangeFormula
C2:D2C2=INDEX(FYQtrs!B$2:B$9,MATCH($A$2,FYQtrs!$A$2:$A$9,0))
G4:H4G4=COUNTIFS(Data!$D:$D,">="&$C$2,Data!$D:$D,"<="&$D$2,Data!$B:$B,G$2)
I4I4=COUNTIFS(Data!$D:$D,">="&$C$2,Data!$D:$D,"<="&$D$2,Data!$C:$C,I$2)
J4:J5J4=SUM(G4:I4)
G5:H5G5=SUMIFS(Data!$E:$E,Data!$D:$D,">="&$C$2,Data!$D:$D,"<="&$D$2,Data!$B:$B,G$2)
I5I5=SUMIFS(Data!$E:$E,Data!$D:$D,">="&$C$2,Data!$D:$D,"<="&$D$2,Data!$C:$C,I$2)
Cells with Data Validation
CellAllowCriteria
A2List=FYQtrs!$A$2:$A$9
 
Upvote 0
Wow, thank you for this! I will study and hopefully I can follow to apply to my project! I sincerely appreciate all your work and insight on this - great work!
Thank you again.
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,561
Members
449,038
Latest member
Guest1337

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