Over the last month we have seen some 52, Excel Tips, Tricks, Cheats & Hacks presented by some of the best Excel practitioners on the net:
Excel Tips, Tricks, Cheats & Hacks – Microsoft MVP Edition
Excel Tips, Tricks, Cheats & Hacks – Chandoo.org Excel Ninja Edition
Excel Tips, Tricks, Cheats & Hacks – Notable Excel Sites Edition
Excel Tips, Tricks, Cheats & Hacks – Readers Prequil
In this final post I am presenting a compilation of Readers Contributions.
These have been compiled from comments on the above 4 posts and submissions sent directly to me.
I hope you enjoy the following Excel Tips, Tricks, Cheats & Hacks – Readers Edition
001. Toggle the Absolute/Relative $ Sign in Formulas using F4 – Desk Lamp
Instead of typing $AA$12 simply type AA12 then press F4.
Press F4 to Toggles through the sequence: AA12 -> $AA$12 -> AA$12 -> $AA12 -> AA12
You can read about Absolute vs Relative Cell References here
002. Current Region – Peter Carr
My favorite tip is the CurrentRegion of a range.
CurrentRegion is the contiguous range of cells starting from a cell, and moving out in all directions until an entire blank row or column is reached.
The current Region of the Yellow Cell above is the Red Outlined Area
Keyboard
From the keyboard you can do this by pressing Ctrl+* or Ctrl+A, which is a shortcut for GoTo, Special, Current Region.
VBA
In VBA you can use the Range.CurrentRegion property
If there is a block of data in B4:F10 with blank rows & columns around it
Dim myRange as Range
myRange = Range(“C8”).CurrentRegion
will set myRange to $B$4:$F$10
To identify the number of rows in a contiguous region.
e.g. intNumberOfRows = Range(“FirstCell”).CurrentRegion.Rows.Count
003. Select the Current Region using the QAT – Christine
In addition to the techniques described by Peter above, you can select the Current Region by adding an Icon to the Quick Access Toolbar.
Click on any cell and then click on the icon or use Alt+4
004. Find the Alt-Shortcut Key Number for the QAT – Hui
In the “Select the Current Region using the QAT” post above, Christine showed us how to use the Current Region Icon
to quickly select the current Region. But how do we know it is the 4th Icon?
The Alt Number is Position dependent, in the example above the Current Region Icon is the 4th Icon from the Left in the QAT and so it is accessed by Alt+4
But by simply pressing the Alt key, Excel will show you the shortcut numbers for the QAT and all other Tabs
So we can see that the Select the Current Region icons is yes, No 4 and so Alt+4 is required to activate it
We can also see that the Record a Macro icon is number 08. To use that You use Alt+08 (Using the Number keys, not the numeric keypad)
Using Alt also shows you all the Tab shortcuts as well
005. Stay on the Current Cell after you press Enter – MF
Typically when entering data as you press the Enter key, Excel advances the current cell to the next cell as defined in the File, Options, Advanced, Editing Options menu
To stay on the current cell Simply press Ctrl+Enter instead of Enter
You can set your default move direction or disable Move Selection permanently by changing the option in the File, Options, Advanced, Editing Options menu:
006. Close a File Shortcut – Johnathan Cooper
Simply pressing Ctrl+W closes the current file
If the file has changed since the last save you are given the option to Save the file before it closes
007. Keyboard Shortcuts – Chirayu
Hide columns – CTRL + 0
Apply Filter (alternative) – SHIFT + CTRL + L
Clear Filter – ALT + D + F + S
Drag Down – CTRL + D
Drag Right – CTRL + R
Drag Up – ALT + E + I + U
Drag Left – ALT + E + I + L
Value Paste – ALT + E + S + V
Format Paste – ALT + E + S + T
You can find a comprehensive list of Keyboard Shortcuts at: Chandoo.org Keyboard Shortcuts
008. Use AutoCorrect to write formula – Wynn Hopkins
My favorite trick is using AutoCorrect to help write INDEX MATCH formulas..
Copy the following line into AutoCorrect and then use iii as the text to replace
=INDEX( DblClk_to_Select_Column_to_return, MATCH( DblClk_Single_Lookup_Cell, DblClk_Lookup_Column, 0),0)
This way whenever you need INDEX MATCH you just type iii and AutoCorrect kicks in and you are 3 double clicks away from a robust formula.
AutoCorrect is found in the File, Options, Proofing Menu
Contributor: Wyn Hopkins
009. Fill Blanks in a Data Table before use in a Pivot Table – RobD
When building pivot tables, it helps to have a full column of like values, so if you have a set up such as:
Where the data area has blank cell
Use this handy VBA
‘Change the MyCol value to match your value
Becomes…
Note: The code copies the text above the blank cell, and so the user must be careful that this is a valid assumption
010. Fill Blanks in a Data Table before use in a Pivot Table II – Jomili
Extending the technique shown above, Jomili supplied some VBA code that does the same as 007 above, except that it handles Multiple Columns at once as well as allowing Formulas to be converted to Values in the final result
So
becomes
by using this code:
011. QAT Copy/Paste Shortcut – Ian Watkins
By assigning the Copy, Paste Values and Paste Formulas Icons to positions 1, 2 & 3 of the Quick Access Toolbar
Instead of doing a big move of my hand from Ctrl+C to Alt+2, I can just move a finger from Alt+1 t copy
Click on the new cell and press Alt+2 or Alt+3 without moving my hand
Speeds things up quite a bit!
012. Customize Markers in a Chart – Chandeep
Customizing markers in a chart – http://www.goodly.co.in/customize-markers-in-a-chart/
013. Charting Hacks to work faster – Chandeep
Charting Hacks to work faster – http://www.goodly.co.in/5-charting-hacks-to-help-you-work-faster/
014. Seven Date formulas to make life easy – Chandeep
7 Date formulas to make life easy – http://www.goodly.co.in/date-formulas-in-excel/
015. Customised scrollbar using VBA – Chandeep
Customised scrollbar using VBA – http://www.goodly.co.in/customized-scroll-bar-in-excel/
016. Adding Direct Legends – Chandeep
Adding Direct Legends – http://www.goodly.co.in/how-to-add-direct-legends-to-the-chart/
017. Excel Ninja Menu – Krishna Khemraj
Select a cell or range then move till the 4-way cross appears.
Then Right-Click and drag the selection to another place in the worksheet then, like a ninja, a menu full of skills and throwing stars pops up allowing me to do all kinds of awesomeness.
When you click the fill box on a Date and Right Click and Drag it down, a lot of amazing Date options pop up.
018. Copy & Paste Filtered Data Only – Patricia
If you try to copy subtotaled data (and in earlier Excel versions filtered data), when you paste it all the data displays instead of just the summarized data.
To get around this, select your summarized data, click on Find and Select tab and then select Go to Special.
Click Visible cells Only and click Ok.
Now paste and you will see that only the summarized data has been copied.
You can also go CTRL+G and then click the Special icon at the bottom of the dialog box.
019. Clear Filters for the Current Column – Graham
With a table that is filtered, ensure the active cell is in the header of a filtered column and hit ALT + Down Arrow + C to clear the filter for the current column
020. Names Formula Tips – Pedro Paulo
You can bring up the Name Manager in Excel by pressing Ctrl+F3.
This lists the names used in your current workbook, and you can also define new names, edit existing ones or delete names from the Name Manager.
You can define several named ranges using data that’s arranged in neat tables. Excel creates named ranges from your selection and uses your data headings as the new names.
Make sure your data has headings (top row, left column, bottom row or right column) as these will turn into the names of your named ranges
Select the data including headings, press Ctrl+Shift+F3, in the dialog box select where your headings are (top row, left column, bottom row or right column) and click Ok.
Field Names which include spaces will be replaced with underscores
eg: Account Code will become the Account_Code named formula
021. Avoid Division by Zero – Ian Wilson
If a formula returns a number value, the Iferror() function can be used to isolate a returned value of zero.
You just need to utilize reciprocals:
1/(1/x) = x, however, if x = 0, then the function is an error.
My most common use of this feature is to return a blank instead of a 0.
=iferror(1/(1/sum(range)),””)
This could also be used to avoid division by 0 or replace 0s with a string.
022. Text to Columns Shortcut – Vishal Onkar
When working with lots of Text or CSV Files you invariably end up using the Text to Columns function repeatedly
This can be accessed by the ALT+D+E keyboard shortcut
023. Convert a Month in Words to a Month Number – Denys calvin
To convert a month in words (i.e., “August”) to its number (i.e., “8”), use, at least, the first three letters of the word in the following formula: =MONTH(“mmm”&1)
=Month(“March”&1) returns 3
=Month(“Mar”&1) returns 3
024. Trace Precedent/Dependents – Prashant99
Trace precedent cells Ctrl+[
Trace dependent cells F5+Enter or Ctrl+]
025. Resize Columns – Target
I routinely get sheets with data all smashed up which I hate and I’ve never been able to find a shortcut to do this.
To get around this I use the following VBA and assign a shortcut key (CTRL+Q)
It can be a nuisance if I’ve intentionally hidden columns, but the convenience far outweighs the inconvenience
026. Format Table Header Row – Ronnie
I use Tables many times a day and have a simple macro to give me a consistent Table format
The VBA Code:
027. Quickly Jump to Range – Efand
Type the range address directly in the Name Box and then press Enter to select it.
e.g: type A3:A6 will select its ranges without using any clicking and dragging
If you select a Range say B3:B6, then type a Name in the Name Box “From_Date“, Excel sets up a Named Formula referring to that range
If the Named Formula already exists, eg: From_Date, Typing From_Date into the box will take you to it.
You can also use the Drop Down next to the Name Box to select existing Named Ranges
028. Easily delete all Non-Formula cells – Martin
To easily delete all none-formula entries in a worksheet in one go:
Goto Home, Find & Select, Constants
This selects all cells that do not contain a formula.
Then just hit the delete button and you are done!
029. Reset all Cell Comments to the Same Style – Hui
To Reset all Cell Comments to the Same Style simply copy this code into a code module in your workbook
Edit the style parameters to suit your need
Run the code with F5
Closing
Many many thanks to the Microsoft Excel MVPs, Chandoo.org Ninja’s & My Favorite Excel Websites Authors for the 52 and You for the 29 Excel Tips, Tricks, Cheats & Hacks that have been showcased over these past 5 posts.
I hope you get to to revue all the tips and pass comments and appreciation back to the authors as appropriate.
I will re-run this series in May 2017 so keep a list of your new Excel Tips, Tricks or Hacks handy.
If you have any Excel Tips, Tricks or Hacks, Don’t be afraid to share them below in the comments:




































59 Responses to “Robust Dynamic (Cascading) Dropdowns Without VBA”
downloaded workbook doesn't work for me. it's always missing the first selection.
so, If I choose fruit, apples is not in the dropdown. if I choose vegetables, beets is not in the dropdown
@Gary, you are right, I try to anticipate the reply of Jeff.
Here’s the right formula, enter into the Name Manager while cell B8 was selected:
=IF(ISBLANK(C8),IF(DataEntry[#Headers] B:B = DataEntry[[#Headers],[Main Category]],OFFSET(ValidationLists[[#All],[Main Categories]],1,,COUNTA(ValidationLists[Meat])),OFFSET(ValidationLists,,MATCH(A8, ValidationLists[#Headers],0)-1,COUNTA(OFFSET(ValidationLists,,MATCH(A8, ValidationLists[#Headers],0)-1,,1))-1,1)))
UFFF ... i'm sorry ... forget my previous comment 🙁
Here’s the right formula, enter into the Name Manager while cell B8 was selected:
=IF(ISBLANK(C8),IF(DataEntry[#Headers] B:B = DataEntry[[#Headers],[Main Category]],OFFSET(ValidationLists[[#All],[Main Categories]],1,,COUNTA(ValidationLists[Meat])),OFFSET(ValidationLists,,MATCH(A8, ValidationLists[#Headers],0)-1,COUNTA(OFFSET(ValidationLists,,MATCH(A8, ValidationLists[#Headers],0)-1,,1)),1)))
the errors were due to the fact that ValidationLists does not include the header (as I had initially interpreted)
Great formula as an always Roberto. However, I think it still need some VBA to clean the subcategory selection if the user delete the previous category.
Regards
Ciao Elias! the formula was born from a discussion with Jeff, everyone added something then he wrote this post and he explained the formula ... he gave all the credit to me ... but the merit is more his ... I've only made a mess with these Excel Tables (I'm sorry) 🙂
anyway thanks
This post was borne out of a whole bunch of misunderstandings! When we'd all got to the bottom of them, something beautiful emerged from the dust. 😉
Gary: Thanks for the heads up. Have fixed post and sample file.
Elias: No VBA necessary as users CANNOT delete upstream categories without FIRST manually cleaning out downstream categories. Give the sample file a spin.
Hi Jeff,
Open the file->go to B8 and press the delete key. Do I missing something?
Also, the new file’s link is giving and error.
Regards
No, it's me that's missing something...I misunderstood what you were saying. So yes, you'd need VBA to do that, along the lines per my previous post. But this is still a great non-VBA solution, apart from that.
Link fixed.
Cheer Elias.
Great....i was looking something like this in past but end up with only VBA solutions which i really did not liked them because if anyone unknowingly chnage the upper LOV, All the sub selection get vanished and if the person do not know what those LOV, He/She can only hit his head.
What a fantastic solution. I'm currently replacing VBA routines with non-VBA ones and this formula has become a major part of my re-modelling. Thank you so much for debating, creating and sharing this formula.
LeonK
Kuldeep and LeonK: Thanks for you kind comments. Without comments like yours, I tend to think that noone finds this stuff useful.
[…] http://chandoo.org/wp/2014/02/25/robust-dynamic-cascading-dropdowns-without-vba/?utm_source=feedburn… […]
Great solution! shame I needed it 6 months ago, but I'm sure i'll find another use for it soon!
Certainly do find it useful, keep the awesome posts coming!
Nice work, Jeff and Roberto. The VBA-free cascading data validation is a worthy goal.
At my previous job I regularly sent out Excel surveys to dozens of recipients, and of course couldn't hazard the maintenance nightmare of VBA. I came up with a version of dependent dropdowns that wasn't as self-correcting as this, but uses Conditional Formatting to alert the user, and ultimately, the analyst, that something is amiss. If anybody's interested it's at http://yoursumbuddy.com/user-friendly-survey-without-vba/.
Hey, that's cool, Doug. Will add link to that in the main article.
Thanks Jeff!
[…] Weir explains Robert Mensa’s technique for creating robust dynamic drop downs, without VBA. Just remember, the best we can do is build things that are idiot resistant, not idiot […]
Thanks Jeff and Roberto, this is exactly what I was looking for. The timing it's like a miracle! 🙂
I noticed that the validation is not consistent, in some cells I can type anything I want, but in others the validation rule works. I just copied the cell from the one that was working to the rest and now all are fine. I hope I didn't mess up anything by doing that.
Thanks again,
Pablo
[…] Howdy folk. Jeff Weir here. You might remember me from shows such as Handle volatile functions like they are dynamite, Did Jeff just Chart, and Robust Dynamic (Cascading) Dropdowns Without VBA. […]
Guys, does this work with subcategories beyond 3, per the example? I have a flow chart decision tree with 6 subcategories. My customers are basic users who don't want to read my guidelines or decision tree. I thought dynamic dependent drop downs the best option for this situation. However, I can't seem to find anything on the web that shows beyond 3 categories. If anyone can help show how it could work with the learning/example that Jeff published above, I would be grateful...or if there are better options then drop downs...
Leonard - yes it can. As per the original article: Like Roger’s approach, Roberto’s approach can handle any number of cascading levels, provided all the category names are unique. All you need to do is simply add the new subcategories to the right hand side of the validations table.
Thanks Jeff!
Even though I am basic beginner, I managed to emulate and then modify. Maybe it say somewhere, but I discovered that if your last column in the validation table isn't filled in as far as the 1st column, then you won't get the full first drop down list. I basically created an extra end column that I filled in with bogus numbers so it would work.
Thanks again!
[…] Dependent Data Validation (Cascading Data Validation) […]
I just implemented this mechanism and it works perfectly. When I close the file and try to open it again, it just crashes Excel, and the file become useless.
Tested in two different machines and got the same result.
Anyone with the same problem?
Tks
Enzo
Hi Enzo. Not sure what's going on there. I'll flick you an email, in the case that you want to send me the file to look at.
Hey,
I did this equation on a template and it worked out well. I set up three different sections with no problem. A few months later when I tried to add two more sections to a different tab, it will not work. Well, at first it worked but then out of the blue the formula is not working. But only for that section. This is what I am typing in with the proper adjustments for the cell I am entering. Also, not sure if this is a part of the problem, I am using macros to dynamically rebuild the ValidationListsD table in the formula.
=IF(ISBLANK('Budget Details'!H11),IF(DataEntryD1[#Headers] 'Budget Details'!G:G = DataEntryD1[[#Headers],[SC Account Name]],OFFSET(ValidationListsD[[#All],[SC Account Name]],1,,COUNTA(ValidationListsD[SC Account Name])),OFFSET(ValidationListsD,,MATCH('Budget Details'!F11,ValidationListsD[#Headers],0)-1,COUNTA(OFFSET(ValidationListsD,,MATCH(‘Budget Details’!F11,ValidationListsD[#Headers],0)-1,,1)),1)))
Oh and my starting cell for this one is G11.
Hi -
Thanks for the example - something I could never have done myself 🙂
Fine article and excellent solution for cascading validation lists. Once I found it I couldn't resist trying it. After a while, then, i bumped into an apparently unsolvable problem: when I try copying the sheet which contains DataEntry table, the validation list wouldn't work. I have the ValidationLists in a different sheet.
Of course, copying the worksheet forces excel to copy the ValName range which remains with the same name but scoped to the new sheet instead of the workbook. The DataEntry table becomes DataEntry2 instead. I thought the problem was that ValName scoped to workbook in the first place, so that having 2 different range named the same, one being scoped to the workbook was the issue. So I decided to change the scope of ValName to the worksheet before copying. The result was the same: validation lists do not appear on the new sheet, while still working fine on the original one.
Is there anything I am missing or is just that the operation doesn't have an easy solution (meaning I need to set up the whole thing everytime a copy the sheet)?
@Walter
Your correct
Named Formula are sheet specific and copying sheets can create these issues
You can setup a new Named Formula and relink it on the new worksheet eg: ValName2
Thanks. I thought so.
Hi Guys! try this..
Let us assume you have the main dropdown in cell A1 and its dependent dropdown in cell B1. Also, let us assume that the name of your main validation list is "list1", which means that under validation criteria for cell A1, you Allow List and in source you type"=list1". So, instead of "=list1", try this:
Under validation criteria for cell A1, Allow - List. In Source, type the following formula...
=IF(B1"","",list1)
THAT IS IT! So long as cell B1 is not empty you will not be able to input any value in cell A1.
Cmt...that works fine for two level dropdowns, where you have set up named ranges ahead of time. But my approach can handle any number of cascading levels (provided all the category names are unique) without having to set up individual named ranges. All you need to do is simply add subcategories to the right hand side of the validations table (Table1). There's more on this in the original article I link to at the top.
That is AWESOME!!! I am not VBA yet but needed to impress by boss 😀 AND I DID!!! I did impress myself though as well lol! Biggest thanks to you, Chandoo!!! You rock!
This is exactly what I was looking for, except for one issue, I would likre my data input to be on a different sheet to the source table, and I can't seem to make it work...help?
I have tried the formula. My data input is on Opportunity Data sheet from K3:M9999 and my Validation Lists are on DB Sheet from B37:W55. I have "First_Header", "ProductData" and "ValidationLists" in the Name Manager. I tried the formula as: =IF(ISBLANK(Opportunity_Data!L3),IF(ProductData[#Headers] DB!B:B=ProductData[[#Headers],[Customer Billing Plant]],OFFSET(ValidationLists[[#All],[Customer Billing Plant]],1,,COUNTA(ValidationLists[Customer Billing Plant])),OFFSET(ValidationLists,0,MATCH(DB!A36, ValidationLists[#Headers],0)-1,COUNTA(OFFSET(ValidationLists,,MATCH(Sheet1!A36, ValidationLists[#Headers],0)-1,,1)),1))). I am continuously getting the error message regarding incorrect formula with the ValidationLists[[#All] highlighted. Can you please help me?
One more simplest way is to use INDIRECT function.
Yes, you can use INDIRECT. But you have to set up a seperate named range for every possible combination, and you can't use spaces (meaning in the example above you would have to use Ozark_Beauty instead of Ozark Beauty). So if you have more than a couple of levels of cascading dropdowns, the INDIRECT approach soon becomes unwieldy.
Whereas my approach can handle any number of cascading levels (provided all the category names are unique) without having to set up individual named ranges. All you need to do is simply add subcategories to the right hand side of the validations table (Table1). There's more on this in the original article I link to at the top.
I'm working on adapting this to my form. I'm just getting into using VBA and advanced formulas, literally like three days ago! I was wondering if this will work with my project. I have a very simple form that I created using one downstream dropdown to capture a group and subgroup. I only have the one table where my source data is pulled from. There are no headers in my data entry (form) area either. Just want to make sure its possible. I'm hoping to understand this better once my Vyvanse kicks in!
Kind regards
Yes, this should work. Setting it up can be a bit complicated, so if you get stuck, perhaps the best way to proceed is to download the example, and change it to suit your needs.
Hi Chandoo,
Your formulas have worked wonders for me, however after finally being able to apply this "Robust-dynamic-cascading-dropdowns-without-vba", it seems I could not get the dropdowns to work if I duplicate the worksheet and rename. When I pull up the Name Manager, it seems the originally created table and Name Ranges are scoped to Workbook, and new Names exist scoped to specific Worksheet.
Not sure if I make any sense, but in simple terms, I duplicated sheet 1, rename to sheet 2, click on the same cell with data validation, no drop-down appears.
Any idea?
Hi Jim. I'm the author of this guest post, not Chandoo. You'll simply have to create new names that don't conflict with the old.
Hi Jeff, sorry I didn’t notice... anyway, thanks for the reply, just realised the sheet names and formulas will then have to match accordingly, it works fantastic now! A thousand sincere thanks!!! 😉
Hi Jeff,
Thanks for this post, this was very helpful. I am trying to tweak this formula to accommodate a similar dynamic drop-down structure, but in a different format. My DataEntry table must be formatted a certain way to meet upload requirements.
In my case on the DataEntry table, my "Main Category' drop downs are the table headers (So picture Fruits, Vegetables, and Other Stuff, in B7:D7) and my dependent sub-category drop-downs (only using 1) are in the rows directly underneath (ex. Apples, Beets, Bread as selections in B8:D11)
My Validation table has my Main Category selections as column headers with all the sub-category values listed underneath. (I hadnt considered an Initial List since I only have 1 dependent drop-down list)
I can change the validation table in any way I want but the DataEntry table must stay in this format. Is there a way to rearrange the formula to accommodate this while maintaining functionality?
Thanks!
Michael
I'm afraid not, Michael. You'll have to research for a different approach.
In this case, you can use the example demonstrated here:
https://chandoo.org/wp/cascading-drop-down/
Hi Chandoo,
Thanks for this, unfortunately I cannot use this as I will need to copy the validation over to multiple columns to the right, and also have the dependent drop down validation copied down to multiple rows. So I wont be able to have the IFERROR formula that displays the red X next to my drop-downs, nor can I put it underneath. Similarly I will need to format my validation values as a table so I can add new items to each drop-down as I please.
Based on this criteria, is VBA my only option here?
Hi Chandoo,
I use Excel for Mac 2016, so when I try to paste my version of the suggested formula the range of cells box truncates it to 255 characters max (my formula has 455 characters).
Is there a way to get around this situation?
I tried splitting it up in two and using CONCATENATE to combine it together but it didn't work. Maybe I'm doing it or there's a more clever way to circumvent this limitation...
Hi! This solution is perfect for me! I am trying to use Cascading Drop-downs on a protected sheet and don't want to get into VBA to get around that. I would only need to adapt the Headings and Category names.
I can do this easily and it works perfectly on the worksheet I downloaded from you.
However - I think I am having the same trouble as Leonardo above - When I try to copy the sheet into my existing workbook, it fails. It says I am missing a parenthesis. I am also using Excel for Mac 2016. But I don't understand why it works on the worksheet I downloaded, but not when trying to integrate it into a new workbook. Thanks for any help!
Actually I figured it out - if I "copied" your worksheet into mine, the problems occurred. If I "moved" the worksheet into mine, it worked perfectly, thanks again for providing this innovative solution, now I can use these lists on a protected workbook with no VBA to work around!
Hi everyone,
First of all, thank you for this article, it is really insightful.
I have a question regarding this topic tho.
My question is "How many levels of dynamic (cascading) dropdowns can you construct ?".
In order terms, would it be possible to add a 4th level with illegal characters in the example above ?
I tried to research that really hard but could not find anything. Any help is welcome.
Thank you,
Pierre
Hi, I am looking for a formula where the cell content changes from selecting the options in a dropdown. For example: when I select week as an option in the dropdown then my dashboard will give me report week wise information. From Cell A5 to A15 the weeks should be reflecting and based on that weeks the other column cells should give the info. Likewise when I select the option as Month then the same cells A5 to A15 should show the months and based on the month the other column cells will give the report. And other this is, only the available week or month should reflect in the A5 to A15 Cells from the dump.
Kindly request to help me in this as I have stuck with the dashboard which I need to complete and share with clients.
Hi Thomas... Thanks for your comments. Please refer to automatic month rollover page for information on how to calculate month dates based on starting month. You can tweak this logic with an IF formula so that when "Weeks" is selected in the drop down, you will have weeks in A5:A15 and months otherwise.
Automatic Rolling Months in Excel [Formulas]
Thank you so much Chandoo. It's helpful.
Hi Chandoo, I have attached the dashboard via email. Please check.
I need help!
I have 2 columns one with date which can repeat and another with date that vary along the day as multiple tests are executed during the day. I need a cascading dropdown, than upon selection of the date, user's can choose the time at which the report was executed to look at the data.
my 2 tables look like this:
Date Hour
20/10/2020 13:45
20/10/2020 15:34
07/10/2020 20:00
09/10/2020 20:45
09/10/2020 21:45
How would the formulas look for a scenario where I don't have and categories listed on the top row?
You may want to refer to my latest post "two level dropdowns" for another way dealing with this problem. link here - Two-level Data Validation [Excel Trick]