+ Reply to Thread
Results 1 to 12 of 12

Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    South Jordan, Utah
    MS-Off Ver
    2010
    Posts
    6

    Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    Hi.
    I downloaded a dashboard template that has two tabs of data and I would like to add additional tabs.

    I would have to modify the IF and CHOOSE functions, can anyone help?

    Formula view:
    Capture.jpg

    Here's the pretty view:
    Capture2.jpg
    Last edited by slucille; 07-18-2014 at 01:13 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    Welcome to the forum.

    Please note that the screenshot you uploaded makes it extremely difficult for anyone to assist you. It is lower resolution, so the wording is hard to make out. Formula view only shows part of the formula. There are multiple tabs, only one is shown, and none of the formulas I can see contain an IF or a CHOOSE to modify in any way per your request.

    Please copy the formulas in full and post with them, or upload a copy of the template and explain exactly what you need help with.

    Thanks
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    An image attachment has very little value. Just attach the Excel file. It's easier than taking a screenshot first and then attaching that.

    It will be much easier to understand your problem if you provide your file. This allows us to see and experiment with your data, layout, formulas, code, and possibly attach a file with a completed solution. If you are looking for formulas to produce a desired result, it helps if you create a mock-up of what you want the result to look like.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    07-18-2014
    Location
    South Jordan, Utah
    MS-Off Ver
    2010
    Posts
    6

    Re: Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    Here is the file.
    Attached Files Attached Files
    Last edited by slucille; 07-22-2014 at 04:27 PM.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    Where are the IF and CHOOSE functions that you want to modify? What will be on the two sheets that you want to add?

  6. #6
    Registered User
    Join Date
    07-18-2014
    Location
    South Jordan, Utah
    MS-Off Ver
    2010
    Posts
    6

    Re: Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    I would like to just add tabs that are the same as the other two tabs. the third tab is not connected to anything right now but I would like to be able to add a radio button for each additional tab and have the data I enter show in the dashboard when the radio button for that tab is selected.

    I found formulas by showing all and changing the text color on the dashboard tab. I do not see the CHOOSE formula but it was suggested in the blog that this spreadsheet template came from.

    http://blog.immeria.net/2008/08/even...oards-fun.html

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    Same as which "other two tabs"? There are five tabs.

    You have asked a very small question but have provided none of the huge background needed to understand what this file is doing or how it's doing it. I think you may need someone who has the time to deconstruct this whole solution.

  8. #8
    Registered User
    Join Date
    07-18-2014
    Location
    South Jordan, Utah
    MS-Off Ver
    2010
    Posts
    6

    Re: Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    I tried. I have small experience in Excel.

    Thanks for taking a look.

  9. #9
    Registered User
    Join Date
    07-18-2014
    Location
    South Jordan, Utah
    MS-Off Ver
    2010
    Posts
    6

    Re: Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    tab #2 and tab #3

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    Quote Originally Posted by slucille View Post
    I tried. I have small experience in Excel.


    OK, I see what's going on. I have updated your file for you.

    CTA Optimization_7-18-2014.xlsx

    I'll explain how this all works.

    There are two sets of data on identical layouts on sheets VALO and Opalescence (originally named WebDataS1 and 2 in the template). The Dashboard page digests the data on those two sheets. There are two option buttons, S1 and S2, linked to cell C2, which shows 1 and 2 respectively, depending on which button is selected. C2 is given the name RefSite.

    There is another formula in E2 such that if C2=1, the formula gives WebDataS1 and if C2=2 it gives WebDataS2. These names are also range names of the data on the two data sheets. E2 is given the name RefData.

    All of the formulas in the rest of the page refer to INDIRECT($E$2), which is either WebDataS1 or WebDataS2. The INDIRECT function changes this range name to the actual range. All of this long series of connections means that when the user selects the S1 option button, all the formulas now point to the data on the first sheet. When the user selects S2, they point to the data on the second sheet.

    I have configured your file to use Opalustre as the third sheet. To do this, I selected its data and gave it the range name WebDataS3 (you had it named WebDataS15 but I thought 3 made more sense). Then I had to add a third option button. Last, I had to update the formula in E2. It was

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To select among three sheets, it is a natural to use CHOOSE instead of adding a nested IF. This is where CHOOSE comes into play, although it doesn't exist in the original sheet.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Now selecting the S3 button will cause all the formulas to refer to the new third sheet.

    If you wanted to keep adding more sheets, I would change the design. First, instead of option buttons I would use some type of dropdown box, either data validation or a combobox, with a list of worksheet names. I would change the INDIRECT to reference the selected sheet name instead of a named range. Then you don't need C2 or E2 anymore. Then you can keep adding sheets by just adding each sheet name to a list, instead of adding controls and updating formulas. If that's what you need let me know.

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    Actually I went ahead and did it. CTA Optimization_7-18-2014.xlsx

    To add a new sheet:

    1. Copy any of the three existing data sheets, to any location.
    2. Add the name of the new copy at the end of the list on sheet "Sheet List".


    That's it.

  12. #12
    Registered User
    Join Date
    07-18-2014
    Location
    South Jordan, Utah
    MS-Off Ver
    2010
    Posts
    6

    Re: Add a New Tab within a Workbook containing a Dashboard using CHOOSE and IF

    Thank You SO Much!

    That's perfect!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA to data Split from column values as new workbook save into folder with dashboard sheet
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-08-2014, 02:03 AM
  2. Replies: 0
    Last Post: 04-26-2013, 03:40 AM
  3. Macro to copy data from other workbook - let user choose which open workbook
    By ssu95bm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-12-2011, 11:17 AM
  4. Choose 2nd workbook
    By antony moseley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-05-2009, 04:36 PM
  5. Open workbook in a macro letting the user choose the workbook
    By russ8502 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2007, 03:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1