+ Reply to Thread
Results 1 to 43 of 43

#n/a error

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    #n/a error

    can anyone help with the attached workbook problem please , it returns a #n/a error

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: #n/a error

    care to shed some light on your problem?

    The cell displaying #N/A only contains #N/A so at the moment I don't see a problem.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #n/a error

    hi andy
    the formula i thought was in the box is
    =if(j1="yes",(index($b$4:$k$7,match(ceiling(h1*1000-1,500),$a$4:$a$7,0),match(ceiling(f1*1000-1,500),$b$2:$k$2,0))),0)
    brian

  4. #4
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #n/a error

    also H1 should have 3.6 inserted and F1 should have 3.6 inserted , sorry for lack of info
    brian

  5. #5
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    #n/a error update

    can anybody help with this problem on attached workbook , this one includes all the info
    brian
    Attached Files Attached Files
    Last edited by bdf1965; 11-01-2013 at 09:59 AM. Reason: workbook wrong

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: #n/a error

    Part of your formula CEILING(H1*1000-1,500) produces value of 4000. How do you expect it to match anything in your table?
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: #n/a error update

    Hi,

    There doesn't appear to be any info in there. Just a table and no formulas.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: #n/a error

    maybe you should explain what the formula is suppose to do as the values in it don't make sense at the moment

  9. #9
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #n/a error

    H1 and F1 are the widths and depth for a conservatory , with these inserted it should give me the cost from the appropriate grid , as soon as they go over the sizes they need to move to the next cost up
    brian

  10. #10
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #n/a error update

    i have put the correct table on

  11. #11
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: #n/a error

    see attached with revised formula.

    I used helper cells so the formula is not complex in a single cell.

    Basically determine which row and column to use in the matrix
    Attached Files Attached Files

  12. #12
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: #n/a error

    Both threads have been merged.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  13. #13
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #n/a error

    thank andy

  14. #14
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #n/a error

    hi andy ive entered the formula you gave me im getting a #name error in m4 and #ref in p5 any advice please
    brian

  15. #15
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: #n/a error

    I assume even though you posted a .xlsx file you have xl2003. if so revise the formula to not use IFERROR

    M4: =IF(J1="yes",IF(ISERROR(INDEX(B4:K7,P5,P4)),"Size Out",INDEX(B4:K7,P5,P4)),0)

  16. #16
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #n/a error

    i had missed the "" of off yes in m4 which would explain the #name error but i am still getting the #ref error in p5 , sorry to be a pain im a bit of a novice at this
    brian

  17. #17
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #n/a error

    the name error was caused by missing the "" of off the word yes , ive tried new formula but still getting #ref error
    regards
    brian

  18. #18
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #n/a error

    the name error was caused by missing out """" on yes , even with the new formula i am still getting the #ref error
    brian

  19. #19
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    #ref error

    can anyone tell me why i am getting this error please LEAN TO INSTALLS.xlsx

  20. #20
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: #ref error

    None of the MATCH functions can find a match MATCH(CEILING(H1*1000-1,500),$A$4:$A$7,0) looks for 4000 in col A and does not find it thus the error

  21. #21
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: #ref error

    I see an #N/A error rather than a #REF error....

    But Pepe is correct in it errors due to not finding the value your formula specifies.

  22. #22
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #ref error

    every time i attach a work book i send the wrong one , i dont know how to get back to attach correct one

  23. #23
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: #ref error

    Reply to the thread and attach the correct workbook in the same way you attached the one above.

  24. #24
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: #ref error

    Why are you using CEILING(H1*1000-1,500) because it gives 4000 which is no where in the column A at all, thus giving #N/A error.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  25. #25
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #ref error

    this hopefully is correct one
    Attached Files Attached Files

  26. #26
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: #ref error

    Your formula is looking for the 5th value in an array of only 4 cells.

    =IF(INDEX(A4:A7,5)<H1,5+1,5)
    Last edited by BadlySpelledBuoy; 11-01-2013 at 01:56 PM.

  27. #27
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #ref error

    i have changed the 5 to a 4 in cell p5 but the prices on the grid should change as soon as the sizes go over the sizes in cells f1 and h1 , eg width 6 and depth 3 should give 1272 and not 1200 any idea please

  28. #28
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: #ref error

    Can you explain why you should be returning 1272? I'm not sure I understand the logic behind what you're trying to do here...

  29. #29
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #ref error

    its a costing grid and as soon as a size goes over it has to be costed to next cell , in the grid width 6 depth 3 should return 1272 but i am getting 1200

  30. #30
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: #ref error

    I worked it out in my thick skull as soon as I hit send...

    Try, =INDEX(B4:K7,MATCH(H1,A4:A7,1),MATCH(F1,B2:K2,1))

    Does that do what you need?

  31. #31
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #ref error

    moving the depth and width sizes is not changing any sizes at all

  32. #32
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: #ref error

    Works for me...
    Attached Files Attached Files

  33. #33
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: #ref error

    Have you got "Auto Calculation" switched on?

  34. #34
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #ref error

    width 6.6 and depth 4 still returns wrong cost but its better on most

  35. #35
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #ref error

    how do i swith that on im a novice at this

  36. #36
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #ref error

    if you enter 4.1 width and 3.6 depth it is still wrong

  37. #37
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #ref error

    this is driving me nuts can anyone help

  38. #38
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: #ref error

    you need to reverse the table to get the next highest
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  39. #39
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #ref error

    thank you so much its been driving me crackers
    kind regards
    brian

  40. #40
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: #ref error

    or then again use ceiling instead on your original table
    =INDEX($B$4:$K$7,MATCH(CEILING($H$1,0.5),$A$4:$A$7,0),MATCH(CEILING($F$1,0.5),$B$2:$K$2,0))

  41. #41
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: #ref error

    Hi Brian,

    no wonder I couldn't help you - you keep starting new threads. You started off with this one:

    http://www.excelforum.com/excel-form...d-formula.html

    and then moved on to this one:

    http://www.excelforum.com/excel-form...ml#post3460539

    and then started yet another one:

    http://www.excelforum.com/excel-gene...ml#post3460906

    and finally started this current thread.

    I've lost track of where you are up to - why do you keep changing the units of the grid?

    Do you still have a problem to be sorted?

    Pete

  42. #42
    Registered User
    Join Date
    10-23-2013
    Location
    essex
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: #ref error

    yes still a problem , i have reversed the table as suggested by martindwilson in the attachment it works perfect , i have copied this formula into my price list and have got the #n/a error back , i have to change the grid sizes for the different types of conservatory we do
    brian

  43. #43
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: #ref error

    Brian,

    I've put the various grids that you have posted in one file, one sheet for each grid. I've made these look the same, so that your table headers all start on row 10, and you have the rows above for general info and data input. For any grid, enter your width, depth and the validity (I assume that this is what the Yes is for) in the yellow cells, and you will get the price in the blue cell.

    If you need to add any other grids, ensure that the units for height and width in the table are in mm, ant enter the appropriate increments in cells D3 and D4.

    I have made the formula in the blue cells extend beyond the tables, so it can accommodate larger table.

    Hope this helps.

    Pete
    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. [SOLVED] Error " Run-time error '1004': application defined or object defined error
    By lengwer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2013, 07:26 AM
  2. 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
  3. 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
  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. [SOLVED] 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