+ Reply to Thread
Results 1 to 11 of 11

Help with #VALUE error

Hybrid View

  1. #1
    Registered User
    Join Date
    07-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Help with #VALUE error

    Hello-

    I've created a sales spreadsheet and built two top ten sections, one for monthly leaders and one for yearly leaders. Within the two lists I have a column for rep name and a column for units sold. To display units sold in ranking order I used the Large function. Works fine. To display the reps name I used the following formula (I did not create it, I found it online):

    =IF(ISNUMBER(U7),INDEX($D$19:$D$41,SMALL(IF($X$19:$X$41=U7,ROW($D$19:$D$41)-ROW($D$19)+1),COUNTIF(U$7:U7,U7))),"")

    It worked great when I first used it but now when I try to change the column reference for unit sales number (from U to X) it returns a #VALUE error. The D column is referencing sales rep names. I don't understand where I went wrong. I realize that the reps names are in text but as I said it worked great the first time I built it. Any help is appreciated.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with #VALUE error

    Hard to say since the formula has references to both coulmn U and X in multiple locations.

    Can you post a SMALL sample file with just the relevant data?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    07-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Help with #VALUE error

    Thanks for the reply. I'm embarrassed to ask but what's the securest way to upload a small sample? I'm not a guru by any sense, so some remedial help is appreciated.

  4. #4
    Registered User
    Join Date
    07-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Help with #VALUE error

    Here's a sample copy of the workbook. Sample Workbook.xlsx

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with #VALUE error

    875kb

    Eh, that's too big for me.

    To me, a small file is about 20 rows worth of data.

  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
    53,049

    Re: Help with #VALUE error

    aaww c'mon Tony, its only A1:Z47 lol

    OK, 1st thing you need to do is remove the merge-cells formatting (and avoid that everywhere if at all possible, it just messes things up - like here). You can use format/center across selection instead.

    2nd, that is an array formula...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    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

  7. #7
    Registered User
    Join Date
    07-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Help with #VALUE error

    Thank You! I completely forgot about that step. I appreciate the help.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with #VALUE error

    Quote Originally Posted by FDibbins View Post
    aaww c'mon Tony...
    I've been meaning to post an example of a top/bottom N list in the Tips and Tutorials forum.

    Maybe I'll do that this weekend if things are slow.

  9. #9
    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
    53,049

    Re: Help with #VALUE error

    Also, in F7, copied down, try this instead, it will eliminate the need to adjust the formula for months (PROVIDED the month name in E6 is identical to the month names in row 18)...
    =LARGE(OFFSET($G$18,1,MATCH(LEFT($E$6,FIND(" ",$E$6,1)-1),$G$18:$Y$18,0)-1,25,1),ROW(A1))

  10. #10
    Registered User
    Join Date
    07-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Help with #VALUE error

    FDibbins, you solved my next issue with that formula. Forward thinking, I love it. Thanks again, to you both for your help. Sorry about the file size, apparently size does matter. Have a great weekend.

  11. #11
    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
    53,049

    Re: Help with #VALUE error

    Happy to help

+ 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. Receiving following error “Complie error : syntax error” Help
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2012, 10:19 AM
  2. Error "run-time Error '1004': General Odbc Error
    By D4WNO77 in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM
  3. [SOLVED] Macro error - Run time error 1004 (App defined/Object Defined error)
    By jlax34 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-06-2012, 03:02 PM
  4. Error 75 File/Path access error, sometimes Error 1004
    By smokebreak in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-16-2011, 02:35 PM
  5. Error Handling - On Error GoTo doesn't trap error successfully
    By David in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-16-2006, 02: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