+ Reply to Thread
Results 1 to 8 of 8

Changing 0 to N/A

  1. #1
    Registered User
    Join Date
    10-02-2014
    Location
    NY,NY
    MS-Off Ver
    MS Office 2010
    Posts
    13

    Changing 0 to N/A

    Hey guys, I am trying to make the "0%" (in the day over day change context) to show as N/A in the dashboard (in a different tab).
    The data shows in a tab called Sheet 5, and is pulled to a tab called Dash.
    This is under top 10 reasons so it needs to be one function for all 10 reasons (which differ daily)..
    I tried =IFERROR(INDEX(Sheet5!$FJ$26:$FJ$105,MATCH(Dash!B42,Sheet5!$A$26:$A$105,0)),"N/A") but thats a no go.
    Any suggestions? Thanks.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,630

    Re: Changing 0 to N/A

    ... but thats a no go
    What does that mean?

    Please post a sample workbook indicating what you want and why.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Changing 0 to N/A

    Hi, welcome tpo the forum

    If your formula returns a 0, then that is not an error, and the IFERROR() part will not trigger....
    =IFERROR(INDEX(Sheet5!$FJ$26:$FJ$105,MATCH(Dash!B42,Sheet5!$A$26:$A$105,0)),"N/A")

    Perhaos try something like....
    =if(INDEX(Sheet5!$FJ$26:$FJ$105,MATCH(Dash!B42,Sheet5!$A$26:$A$105,0))=0,,"N/A"),INDEX(Sheet5!$FJ$26:$FJ$105,MATCH(Dash!B42,Sheet5!$A$26:$A$105,0)))

    This may be a ble to be simplified if we could see a sample of your data
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    10-02-2014
    Location
    NY,NY
    MS-Off Ver
    MS Office 2010
    Posts
    13

    Re: Changing 0 to N/A

    I will try to explain better (the solution provided contained an error- but it looked too complex for to to understand anyways. I made a pivot table in tab “Sheet5” (from a .csv file in a tab called “csv”) which lists each “Reason for Contact” for today and their respective “# of Attempts”. I also created a tab labeled “Day over Day % Change” and its calculation equals: (today’s value-yesterday’s value)/yesterday’s value.
    The “Dash” is another tab (the main one) and it only pulls the top 10 reasons for contact (out of over 80), based on their # of attempts. Obviously, if the # of attempts today equals the value of attempts yesterday, the result will be 0. However, I want the value of “0” in the “Sheet5” tab to be reported a N/A in the “Dash” tab.
    I tried using the formula: =IFERROR(INDEX(Sheet5!$FJ$26:$FJ$105,MATCH(Dash!B42,Sheet5!$A$26:$A$105,0)),"N/A") but that just gives me the value as it is, meaning if answer is 0, I get 0 instead of N/A in the “Dash” tab..
    Note, I need a formula I can pull for all 10 cells of top 10 reasons for contact, since the top 10 vary.
    To explain the formula, The Day over Day % Data is found in column FJ between the rows 26 and 105 in the “Sheet5” tab (this is how many different reasons for contact I have). Cell B42 in the “Dash” tab is where I have the selected “reason for contact” name (the 10 are between B35-B44) where I got a value of 0. The name of the “Reason for Contact” in Sheet5 is found in column A between rows 26 and 105.
    Thanks in advance! Ive attached 2 print screens as well.
    Dash prtsc..jpgDash prtsc..jpgDash prtsc..jpg

  5. #5
    Registered User
    Join Date
    10-02-2014
    Location
    NY,NY
    MS-Off Ver
    MS Office 2010
    Posts
    13

    Re: Changing 0 to N/A

    I think something went wrong with the attachment, here is the other one (I hope it works) Sheet5 psc.jpg

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Changing 0 to N/A

    None of those images are coming through, but instead of uploading a pic, upload a sample workbook. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Changing 0 to N/A

    None of those images are coming through, but instead of uploading a pic, upload a sample workbook. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.

  8. #8
    Registered User
    Join Date
    10-02-2014
    Location
    NY,NY
    MS-Off Ver
    MS Office 2010
    Posts
    13

    Re: Changing 0 to N/A

    understood. Attached is the spreadsheet with just the info discussed. Look for account revoked in Sheet5
    Attached Files Attached Files

+ 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. Replies: 0
    Last Post: 10-22-2013, 01:04 PM
  2. [SOLVED] Changing fill color of shapes based on changing cell value
    By Stefan1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2012, 10:33 AM
  3. Changing Equations/Populating Cells due to changing a date
    By MontanaAggie in forum Excel General
    Replies: 1
    Last Post: 11-23-2011, 04:00 PM
  4. Changing colour on changing a Data Validation List added with VBA
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-16-2011, 08:15 AM
  5. Replies: 0
    Last Post: 03-31-2011, 09:42 AM

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