+ Reply to Thread
Results 1 to 9 of 9

N/A to 0 Solution

  1. #1
    Registered User
    Join Date
    09-09-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    9

    N/A to 0 Solution

    Can anyone provide a solution to change 'N/A' in 'DAYS OFF (HIDDEN)' column to a zero?


    Many thanks to anyone who can help.


    Craig

    Excel file attached.
    Attached Files Attached Files
    Last edited by NBVC; 02-10-2011 at 08:39 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: N/A to 0 Solution

    Change formula to:

    =IFERROR(INDEX($Q$2:$Q$5,MATCH(B2,$P$2:$P$5,0)),0)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-09-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: N/A to 0 Solution

    Quote Originally Posted by NBVC View Post
    Change formula to:

    =IFERROR(INDEX($Q$2:$Q$5,MATCH(B2,$P$2:$P$5,0)),0)
    Thankyou, that worked a treat.

    I do have one more question regarding this sheet.

    If I were to add an input within the drop down boxes (SK & UL) and wanted there figures to individually add up in there own cells(SK=SICK DAYS & SICK DAYS HIDDEN), (UL=UNPAID DAYS, UNPAID DAYS HIDDEN) without being subtracted from 'REMAINING' , 'DAYS OFF (HIDDEN)' & DAYS OFF.

    How could I do this?

    I have attached the updated sheet.

    Thanks again

    Craig
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: N/A to 0 Solution

    I am not sure I follow...

    Can you please elaborate with sample entries and desired results?

  5. #5
    Registered User
    Join Date
    09-09-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: N/A to 0 Solution

    Quote Originally Posted by NBVC View Post
    I am not sure I follow...

    Can you please elaborate with sample entries and desired results?
    Thanks NBVC for the prompt replies.

    Please find the file attached with a description of what I require with some colours that should help.



    Craig
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: N/A to 0 Solution

    Not exactly sure but is it?

    In K2:

    =COUNTIF(B2:B10,"SK")

    in L2:

    =COUNTIF(B2:B10,"UL")

    then in H2:

    =(F2-J2+SUM(K2:L2))

  7. #7
    Registered User
    Join Date
    09-09-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: N/A to 0 Solution

    Quote Originally Posted by NBVC View Post
    Not exactly sure but is it?

    In K2:

    =COUNTIF(B2:B10,"SK")

    in L2:

    =COUNTIF(B2:B10,"UL")

    then in H2:

    =(F2-J2+SUM(K2:L2))
    Thanks NBVC, those formulas worked.

    However another problem has arose. If I were to put my drop down boxes in another column, I currently cant get the range for 'SICK DAYS' total & 'UNPAID DAYS' total to work with the new column.

    Is this possible?

    File Attached.
    Attached Files Attached Files

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: N/A to 0 Solution

    with COUNTIF() you can expand the range in both directions...

    so you can change your formulas in K2 and L2 to:

    =COUNTIF(B2:D10,"SK")

    and

    =COUNTIF(B2:D10,"UL")

    so now it will count all the matches in columns B and D

  9. #9
    Registered User
    Join Date
    09-09-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: N/A to 0 Solution

    Quote Originally Posted by NBVC View Post
    with COUNTIF() you can expand the range in both directions...

    so you can change your formulas in K2 and L2 to:

    =COUNTIF(B2:D10,"SK")

    and

    =COUNTIF(B2:D10,"UL")

    so now it will count all the matches in columns B and D
    Thanks NBVC, I have now transferred all of these formulas to my final spreadsheet and successfully got it working.

    Thanks for your help.


    Craig

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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