Excel Tips, Tricks, Cheats & Hacks – Notable Excel Websites (Non-MVP) Edition

Share

Facebook
Twitter
LinkedIn

This week I have asked a number of owners of notable Non-MVP Excel websites for their input to their favorite Excel Tips, Tricks, Cheats & Hacks.

Notable means that the web site has attracted my attention and made it into my list of Excel Shortcuts in my Firefox browser.

Lets dive in:

001. Percent of True Items in a Pivot Table Field – Doug Glancy

Doug presents a post on how to add a Percentage of True Items in a Pivot Table

You can read the description at Doug’s YourSumbuddy Website

Contribution by:  Doug Glancy
Website: YourSumbuddy

002. Fixing Bad Dates – MF Wong (aka Fung)

I regularly encounter dates that have been incorrectly input in Excel. To a regular Excel user, it is really a terrible experience.

Therefore I wrote a post about fixing trouble dates:
https://wmfexcel.com/2014/10/12/fixing-trouble-dates/
Using Text to Columns #4 in the post is my favourite trick to fix this kind of problem

Contribution by:  MF Wong (aka Fung)
Website: wmfexcel

003. Using wildcard to reference sheets in formula bar – MF Wong (aka Fung)

Using wildcard to reference sheets in formula bar – a very well hidden magic
This trick, although is not perfect (not dynamic), but is incredibly useful for those who do 3D sum frequently.
https://wmfexcel.com/2015/07/11/sumc3-is-it-a-valid-formula-no-it-is-magical-indeed/

Contribution by:  MF Wong (aka Fung)
Website: wmfexcel

004. Convert PDF to Excel without PDF converter – MF Wong (aka Fung)

Well technically this is not an Excel trick.  Nevertheless I find it super relevant in workplace, but not yet commonly discussed on Internet.
https://wmfexcel.com/2015/08/08/convert-pdf-to-excel-without-pdf-converter/

Contribution by:  MF Wong (aka Fung)
Website: wmfexcel

005. Conditional Standard Deviation – Andrew Engwirda

Excel does not have a Conditional Standard Deviation, ie: a STDEVIF() function. It’s got other conditional functions like COUNTIF(S), SUMIF(S) and AVERAGEIF(S), but is somewhat lacking when it comes to calculating conditional standard deviation.

I have written a user defined function that adds the functionality of a Stdevif() function.
You can read about it here: http://andrewexcel.blogspot.jp/2015/04/stdevif.html

Contribution by: Andrew Engwirda
Website: Andrews Excel Tips

006. Text Troubles – Andrew Engwirda

If you work with data from various sources, it’s possible you will come across numbers formatted as Text. Depending on what you plan to do with these numbers, it’s possible that the Text formatting will cause problems.
This post explores how to anlayse and fix some of these issues:
http://andrewexcel.blogspot.jp/2014/10/text-troubles.html

Contribution by: Andrew Engwirda
Website: Andrews Excel Tips

007. VBA Code Indenter – Andrew Engwirda

A very handy VBA Code indenting/highlighting routine

http://andrewexcel.blogspot.jp/2015/07/vba-code-indenter-and-highlighting-vba.html

Contribution by: Andrew Engwirda
Website: Andrews Excel Tips

008. Indenting Code in Cells – Andrew Engwirda

There’s a few addins out there to indent VBA code. I should know this because I made one of them.

But let’s say for argument’s sake that you can’t use any of them. Perhaps you’re using a computer somewhere that won’t allow you to install what you want. You still have access to the VBE, right?

You can do the work in cells on a worksheet, then transfer the results to the VBE

Read about the technique here:
http://andrewexcel.blogspot.jp/2015/07/indenting-vba-code-in-cells.html

Contribution by: Andrew Engwirda
Website: Andrews Excel Tips

009. Advanced Find & Replace – Andrew Engwirda

Excel’s built-in Find / Find and Replace dialog box is quite useful. Unfortunately you can only find/replace one thing at a time.

(This doesn’t mean you can’t select all cells with the same value at the same time. Just use the Find All button, select one of the results and click Ctrl+A on your keyboard at the same time to select all cells with the same value. The thing is you can only “find” one thing at a time).

Anyway, recently I’ve had to find/replace in lots of cells in various worksheets, and doing the same thing over and over again led me to say “Oh dear, what a bother!”. (Well, perhaps I used stronger language than that)

So I made this.

You can read about it and download it from here:

http://andrewexcel.blogspot.jp/2015/05/aet-find-and-replace-v12.html

Contribution by: Andrew Engwirda
Website: Andrews Excel Tips

010. Setup perfect square gridlines in Charts – Frankens Team

This technique combines XY Scatter with Pie charts to have perfect square gridlines.
Perfect square plot area, perfect square gridlines

I haven’t seen this trick published elsewhere, but I really like it because of the simplicity. We used in lot of other chart solutions where the perfect square plot area was key element.

Contribution by: Frankens Team
Website: E90E50

011. Change the Value Fields in Pivot tables using a Slicer – Frankens Team

This technique makes it easier to change the value fields in Pivot tables or Power Pivot using only a special slicer and few rows of VBA.
Use Slicer to select value fields for Pivot table or PowerPivot!

This trick helps my users to easily select the measure they want to analyze in their pivot table.

Contribution by: Frankens Team
Website: E90E50

012. Combine a hyperlink and drop down list – Frankens Team

It is very easy to use a hyperlink to navigate within a workbook.

But if you have lot of worksheets, it may be easier to combine hyperlink and drop down list.
In this post we will show you how easily you can set up this feature!
The trick is in the order of steps.

Hyperlink to a dynamic range – easy navigation

Contribution by: Frankens Team
Website: E90E50

013. Add a % calculated measure without generating blank rows in Pivot tables – Frankens Team

This last technique can be interesting for some PowerPivot users.

It’s a trick how to build up % calculated measures without generating blank rows in the Pivot table.
Solution: avoid using constant value in fraction calculations.

PowerPivot: Constant in calculated field results blank rows

I had not found solution in google. So I started to investigate and found the root of the problem…

Contribution by: Frankens Team
Website: E90E50

014. Calendar Control for all Office Versions inc. Mac – Frankens Team

It’s out of scope, but just for fun: our biggest cheat is the Calendar control class

Contribution by: Frankens Team
Website: E90E50

015. Combine Bubble and xy scatter line chart – Frankens Team

Have you ever wanted to connect the bubbles of a bubble chart with lines?

For example to create kind of a timeline: how the position of a product changes month by month in a Growth/Profit matrix.
You would like to see something like this:

The technique to achieve this is discussed here:

https://sites.google.com/site/e90e50fx/home/combine-bubble-and-xy-scatter-line-chart

Contribution by: Frankens Team
Website: E90E50

 

016.  Useful Worksheet properties in VBA – Paul Kelly

Here are some useful properties available in VBA:
Usefull VBA Info

Contribution by: Paul Kelly
Website: ExcelMacroMastery

017. Remove blank rows using special cells – Christos Samaras

Remove blank rows using special cells

1.    Select all the range from which you want to remove the blank rows.

RBR1

2.    Hold the CTRL key and press the G key (CTRL + G) from your keyboard, or simply press the F5 button.

RBR2

3.    On the Go To window that pops up click the Special button.

RBR5

4.    Choose the radio button “Blanks” and click the OK button. This will select all blank cells in the range you had previously selected.

RBR3

5.    Finally, hold the CTRL key and press the key (CTRL + –). In the Delete window that pops up select the “Shift cells up” option and press the OK button.

RBR4

Contribution by: Christos Samaras
Website: My Engineering World

018. Using SUMPRODUCT function for numerical integration – Christos Samaras

In the link below I detail how to use the Sumproduct Function for Numerical Integration

 

Contribution by: Christos Samaras
Website: My Engineering World

 

019. Common auxiliary VBA functions that I use in my projects – Christos Samaras

I use a number of Auxillary Functions to assist me in my Excel and VBA Development

These functions include:
–    SheetNameExists
–    GetFileNameFromPathNoExtension
–    FileExists
–    NamedRangeExists
–    IsUserFormLoaded
–    GetIndexOfArray
–    HasBadCharacters

These VBA functions are all demonstrated in the mFunctions Code Module in VBA in the sample file

You can see them all in the attached file: Download Sample File

Contribution by: Christos Samaras
Website: My Engineering World

020. Get data from Tables with VLookup – Christos Samaras

I use VLOOKUP with COLUMN() function and $ symbol for getting data from tables with multiple columns (sometimes exceeding 100 columns).
I have attached a sample, in which you can see what it is:
–    A classic VLOOKUP formula;
–    In which the $ symbol is used for locking the lookup value (its column actually is locked);
–    Instead of column index, the volatile function COLUMN is used;

–    This simply requires the Report worksheet columns to contain the same data layout as the Data Source worksheet
Download Sample File

Contribution by: Christos Samaras
Website: My Engineering World

021. Create a QueryTable from an SQL Query – Tom Kacprowicz

This technique creates a QueryTable from an SQL Query (so called MS Query) within your current Excel Workbook. Normally you need to undergo a lengthy 7 step process.

What does it do?
It creates a QueryTable from an SQL Query (so called MS Query) within your current Excel Workbook. Normally you need to undergo a lengthy 7 step process.

How to Install it
1. Create a new Code Module in your VBA Project
2. Copy the code below into the new code module
MS Query
3. Go to the Developer tab and Click Macros to Run it.

4. I recommend adding an Excel Shortcut (Macro Options) or adding it to your Excel Quick Access Toolbar.

How it works
1. Select a Cell where the QueryTable is to be created
2. Run the Macro
3. When executed it shows an InputBox like so:

Toms Dialog Box
4. Provide your Query and Click Ok.

Why I find it a Great Excel/VBA Tip
In just a couple of seconds you can run a SQL SELECT Query on your Data. In case of errors you will see the error message.

Why MS Queries?
Most people don’t appreciate how powerful MS Queries are.
The PowerQuery AddIn from Microsoft is basically an attempt to make MS Queries more simple to create and manage.

However with MS Queries you can build quick recipes for complex data analysis or quick data transformations.

How would you list a distinct list of records from an Excel Table?
Without MS Queries that would be hard (a Pivot Table? An Array Formula? A VBA Macro?), using MS Query it takes 10 seconds (see first example in my Excel file). MS Queries (SELECT) allow grouping, filtering, ordering, distinct.. the list goes on.

The Macro can be added to your Quick Access Toolbar or mapped to an Excel Shortcut Key Combo.
I have also made a Free Excel AddIn to make running SQL Queries in Excel even easier – Link.

You can see how this works in the short video below:

Download Sample File

Contribution by: Tom Kacprowicz
Website: The Analyst Cave

Closing

A very special thank-you to the Contributors who contributed to the Excel Tips, Tricks, Cheats & Hacks shown above.
The quality of the posts demonstrates the contributors skill and passion to the use of Excel & VBA.

I hope you get to to revue all the tips and pass comments and appreciation back to the authors as appropriate.

Next week will be the second last post in the Excel Tips, Tricks, Cheats & Hacks series, where I will be asking you for your contributions.

These will be combined with the existing comments from this and the previous 2 posts to make the final final post: Excel Tips, Tricks, Cheats & Hacks – Readers Edition.

As always if you have any Excel Tips, Tricks, Cheats & Hacks  you would like to share with us please do so in the comments below:

 

 

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

25 Responses to “Shift Calendar Template – FREE Download”

  1. Alvin says:

    Hi Chandoo,

    your recent postings include only Excel 2007 templates. Unfortunately the company I work at still runs Excel 2003. Is it possible to get your awesome files in other excel version as well?

    Thanks so much for your great excel stuff!

  2. Stelios Tserkezis says:

    Is it possible to do this for shifts with hours instead of days? To organise a three shift day?

    Thanks in advance,

    Stelios

  3. MASTHAN says:

    In my organization there are 45 employees i need split then into three shifts ex:A shift:14,B shift:14,C shift:14 and week off:3 kindly help me on this.

  4. Hui... says:

    @Masthan

    You need to understand what rules your company has for the various shifts / roster combinations

  5. Georges Lacombe says:

    Chandoo, I once did a shift control spreadsheet for my team. I put one person in each line, the columns were the days. I put a shift code in each cell indicating in which shift that person should work, or if the person were out that day. I have two codes for being out. One is for vacations and one is to compensate days worked in weekends. This way I was able to count how many persons I have in each shift, how many were on vacations and how many were out compensating (that's the term we use here) weekend worked hours.
    Later I included the possibility of a person be in two lines one for normal hours other for overtime. This is mainly used for planning purposes. If you would like I can send you an example. The only problem of this spreadsheet is that we don't have a person view, only this consolidated view.

    • Chuck Vaughan says:

      Hi George, I would like to have a copy of your spreadsheet if you can share it.
       
      Thanks in advance, Chuck   

  6. Idan says:

    Hi Chandoo,

    Where is the code located ? is it VBA ? If so , how do you hide it ? Or it is .NET ?

    Thx

  7. Hui... says:

    @Idan
    .
    No VBA or code, it is all done with Mirrors.
    Only Joking,
    .
    But there is no VBA or code,
    It is all done with Named Formulas and Lookups.
    Have alook at the cells in the calander area and Named Formulas in the Formulas, Name Manager Tab.

  8. Anand Sant says:

    How can i calculate between two or more different workbooks? Please, reply me as early as possible.

    • Hui... says:

      @Anand
      Open the workbooks you want to link to
      Start a formula = and click and change between workbooks as required.
      You can use the View, Switch window menu to change workbooks mid formula

      The format for using workbooks is
      =[Workbook.xlsm]Sheet1!$A$1
      or
      =SUM('[Book2.xls]Sheet1'!$A$1:$D$10)
      etc

  9. Shemi says:

    Hi Chandoo,
    I am working with a call centre wherein i ned to update at the month end 20 to 30 employees login hours which are defict to track it at the month end is very difficult is there any template which can be made to track that why on a particular day a guy who needs to be on calls was why not on calls.

  10. Denice Lognshaw says:

    Thank you so much Chandoo. This is really helping me. As usual, you rock.

  11. Mukesh Verma says:

    What's FortyTwoDays and Calendar in Name manager?

    Both are unused and FortyTwoDays doesn't make any sense.

  12. Dave says:

    I have a SQL db that contains records of events scheduled/completed on a particular date. Can this method ous building a calendar be used to display those events on the respective day?

  13. Jan Halliday says:

    Positively awesome!
    I'm attempting to help a friend create a schedule for adult classes - and of course its not"paid help".  Here is the scenario:
    20 classes, instructor, room#, student class size, start date, number of class days (need to subtract weekends)

    class
    instructor
    room
    students
    start
    #days

    PATH
    karen
    201
    21
    01/01/13
    11

    BILLING
    jane
    401
    15
    01/12/13
    13

    MEDISOFT
    mike
    301
    11
    01/25/13
    9

    he'd like to see these classes show up in different colors within the same month's calendar chart.  He can draw it, but I'd like to see it done automatically through data, and I just can't visualize it, but I KNOW this will work - can you help?
    Jan 🙂
     

  14. Chan Tean says:

    Dear chandoo,

    Try many way to download still can't access. Any way we want to try out 3 shifts with 3 guys in a group .eg Group A Morn, Group B Night and Group C Rest. And every each group must work on sunday to take turns. In fact we are security teams so that's why sunday is required to work. Pls guide and show how to put in the working calendar. Thank you in advance.

  15. Veronica Burggren says:

    I've been trying to copy and/or recreate this to use in a workbook I'm doing for the transportation department I'm working for. I need to have the calendar on the first sheet in my document (it has graph's from data on another sheet). I'm trying to use it to track (with the conditional formatting) accidents and injuries. I've redone the conditional formatting to do 4 different accident types (no injury, near miss, OSHA recordable injury and work loss injury), but when I enter the formula's you have in the calendar portion where it says "DateOfFirst-FirstWeekDay" I can't figure out how you did that. Are you able to help?

  16. Pipin Fantom says:

    I would like to use Excel to solve the following problem for a community work. I want to create a Driver schedule for a given month from a pool of volunteers for a community service. Each of these volunteers can drive only on specific days in a week. I would like to populate the driving schedule for each weekday with primary, secondary and tertiary drivers in a random fashion so that I do not overburden one person. I would greatly any help you can provide.

  17. Ravichandra says:

    Hi chandoo,
    Thanks for your valuable effort for create this template and let me know how to add multiple employees in the the Roaster.

  18. Savitha says:

    Hi Chandoo,

    This article on shift roaster is very helpful. Could you please let me know how i can use the same for n number of resources who work 24/7, considering their leaves and holidays?

    Thanks,
    Savitha

  19. Balu says:

    Hi Chandoo,

    This article on shift roaster is very helpful to all. Could you please let me know how i can use the same if I want to add for some more shifts, since the color is not getting change if I add more shifts like 4,5 etc.,

    Thanks,
    Murali

  20. Sarah says:

    How can I change the date to 2017 under Shift Data worksheet.

  21. Cad says:

    solution 1:
    mydata=B2:C16
    stoplist=E2:E8

    =LET(RNG,A2:A16,SMR,C2:C16, F,(RNG=E2)+(RNG=E3)+(RNG=E4)+(RNG=E5)+(RNG=E6)+(RNG=E7)+(RNG=E8),SUM(SMR)-SUM(SMR*F))

    =LET(RNG,A2:A16,SMR,C2:C16,RH,N(B2:B16=B2), F,(RNG=E2)+(RNG=E3)+(RNG=E4)+(RNG=E5)+(RNG=E6)+(RNG=E7)+(RNG=E8),TOT,SUM(SMR)-SUM(SMR*RH*F),SUM(SMR*RH)-SUM(SMR* RH*F))

    ALTERNATE SOLUTION
    =SUM(C2:C16)-SUM(FILTER(C2:C16,ISNUMBER(BYROW(A2:A16,LAMBDA(a,TOROW(SEARCH(a,E2:E8),2))))))

    =SUM((B2:B16=B2)*(C2:C16))-SUM((ISNUMBER(BYROW(A2:A16,LAMBDA(a,TOROW(SEARCH(a,E2:E8),2))))*(B2:B16=B2)*(C2:C16)))

  22. Cad says:

    let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Replaced Value" = Table.ReplaceValue(Source,null,";",Replacer.ReplaceValue,{"Column1"}),
    #"Transposed Table" = Table.Transpose(#"Replaced Value"),
    #"Removed Other Columns" = Table.SelectColumns(#"Transposed Table",{"Column1", "Column2", "Column3", "Column4", "Column5", "Column6", "Column7", "Column8", "Column9", "Column10", "Column11", "Column12", "Column13", "Column14", "Column15", "Column16", "Column17", "Column18", "Column19", "Column20", "Column21", "Column22", "Column23", "Column24", "Column25", "Column26", "Column27", "Column28", "Column29", "Column30", "Column31", "Column32", "Column33", "Column34", "Column35", "Column36", "Column37", "Column38", "Column39", "Column40", "Column41", "Column42", "Column43", "Column44", "Column45", "Column46", "Column47", "Column48", "Column49", "Column50", "Column51", "Column52", "Column53", "Column54", "Column55", "Column56", "Column57", "Column58", "Column59", "Column60", "Column61", "Column62", "Column63", "Column64", "Column65", "Column66", "Column67", "Column68", "Column69", "Column70", "Column71", "Column72", "Column73", "Column74", "Column75", "Column76", "Column77", "Column78", "Column79", "Column80", "Column81", "Column82", "Column83", "Column84", "Column85", "Column86", "Column87"}),
    #"Merged Columns" = Table.CombineColumns(#"Removed Other Columns",{"Column1", "Column2", "Column3", "Column4", "Column5", "Column6", "Column7", "Column8", "Column9", "Column10", "Column11", "Column12", "Column13", "Column14", "Column15", "Column16", "Column17", "Column18", "Column19", "Column20", "Column21", "Column22", "Column23", "Column24", "Column25", "Column26", "Column27", "Column28", "Column29", "Column30", "Column31", "Column32", "Column33", "Column34", "Column35", "Column36", "Column37", "Column38", "Column39", "Column40", "Column41", "Column42", "Column43", "Column44", "Column45", "Column46", "Column47", "Column48", "Column49", "Column50", "Column51", "Column52", "Column53", "Column54", "Column55", "Column56", "Column57", "Column58", "Column59", "Column60", "Column61", "Column62", "Column63", "Column64", "Column65", "Column66", "Column67", "Column68", "Column69", "Column70", "Column71", "Column72", "Column73", "Column74", "Column75", "Column76", "Column77", "Column78", "Column79", "Column80", "Column81", "Column82", "Column83", "Column84", "Column85", "Column86", "Column87"},Combiner.CombineTextByDelimiter("|", QuoteStyle.None),"Merged"),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Merged Columns", {{"Merged", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Merged"),
    #"Added Prefix" = Table.TransformColumns(#"Split Column by Delimiter", {{"Merged", each "|" & _, type text}}),
    #"Replaced Value1" = Table.ReplaceValue(#"Added Prefix","||","|",Replacer.ReplaceText,{"Merged"}),
    #"Split Column by Delimiter1" = Table.SplitColumn(#"Replaced Value1", "Merged", Splitter.SplitTextByDelimiter("|", QuoteStyle.Csv), {"Merged.1", "Merged.2", "Merged.3", "Merged.4", "Merged.5", "Merged.6", "Merged.7", "Merged.8"}),
    #"Removed Columns" = Table.RemoveColumns(#"Split Column by Delimiter1",{"Merged.1"}),
    #"Removed Duplicates" = Table.Distinct(#"Removed Columns")
    in
    #"Removed Duplicates"

Leave a Reply