+ Reply to Thread
Results 1 to 8 of 8

Getting #Value! Error rather than value in cells derived from formula includng blank cell

  1. #1
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Getting #Value! Error rather than value in cells derived from formula includng blank cell

    AN11 = L11 - M11

    Used =IF(L11=0,"",L11-M11) to forward blank cell to make AN11 a blank cell.

    Problem is that AO11 returns this #Value!

    Function in AO 11 is:

    =RANK(AN11,$AN$1:$AN$15)

    The problem gets trickier as there are values in the column that are positive (5) and (0) and negative (-11) etc. This makes using a formula such as:

    =IF(Z11=0,0,Z11+AB11)

    undesirable as it returns 0's which in turn causes issues when I plan to use this formula in column AP.

    =MATCH(SMALL(AO:AO,ROW()),AO:AO,FALSE)

    So far this is the most complicated issue that I have come across ... I have looked through help on Excel and am having a hard time finding any function that resolves this one.

    Thank you for your assistance with this issue,
    Leonard
    Last edited by Securitysports; 11-02-2013 at 11:30 PM.

  2. #2
    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,936

    Re: Getting #Value! Error rather than value in cells derived from formula includng blank c

    if you have an error in your rank range "=RANK(AN11,$AN$1:$AN$15)", it will cause the rank() to return an error as well

    However, because this is fairly involved, it would be easier to fin d the rpoblem if we could see a sample workbook?
    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

  3. #3
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Getting #Value! Error rather than value in cells derived from formula includng blank c

    Attached I believe is the work book for this situation.

    Thank you again for your assistance,
    Leonard
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Getting #Value! Error rather than value in cells derived from formula includng blank c

    I just saw another issue on the work book ... in column D the problem starts with
    cells 2 and 8 with a value of 6 when it should be 7. This is turn starts the domino's
    falling as all the values from 5 on down are off the mark as well.

    I have been able to work through many issues using the help manual on Excel but
    about 20 percent of the project has issues that I have not been able to find a
    way out of. I really do appreciate all the assistance that has come my way.

    Thank you again for all the help in getting this spread sheet up and running,
    Leonard
    Last edited by Securitysports; 11-02-2013 at 08:49 PM.

  5. #5
    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,936

    Re: Getting #Value! Error rather than value in cells derived from formula includng blank c

    change column D to this...
    =IF(C1="","",RANK(C1,$C$1:$C$15))
    and then change column E to this...
    =IF(D1="","",MATCH(LARGE(D:D,ROW()),D:D,FALSE))

    edit: the reason the numbers are not matching as you want is because you have duplicate values (2x 7's and 2x -8's), so you are missing a 2nd and a 7th ranking)

    To overcome this, add a helper to break the ties, use this, copied down (I used F)...
    =IF(C1="","",C1+COUNTIF($C$1:C1,C1)/100)
    Then your rank formula changes to...
    =IF(F1="","",RANK(F1,$F$1:$F$15))
    Last edited by FDibbins; 11-02-2013 at 08:59 PM.

  6. #6
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Getting #Value! Error rather than value in cells derived from formula includng blank c

    Thank you FDibbins ... that took care of a huge part of this issue.

    A little more clean up and this is going to be a huge time saver.

    Thank you again,
    Leonard

  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,936

    Re: Getting #Value! Error rather than value in cells derived from formula includng blank c

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

  8. #8
    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,936

    Re: Getting #Value! Error rather than value in cells derived from formula includng blank c

    post self-deleted

+ 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. Value error with average formula - Because of blank cells?
    By nobodyukno in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 07-17-2013, 08:40 PM
  2. How run a Macro if cell E1 equals a value derived from a formula
    By StevePete in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-31-2013, 02:00 PM
  3. IF formula Error, blank cells
    By sk8shorty01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2012, 04:35 PM
  4. How run a Macro if cell A1 equals a value derived from a formula
    By Stickleback in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2012, 01:39 PM
  5. Like to copy cell based on value derived from Formula
    By Leo2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-19-2010, 11:22 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