+ Reply to Thread
Results 1 to 43 of 43

#n/a error

Hybrid View

  1. #1
    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

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

    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

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

    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.

  4. #4
    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

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

    Re: #ref error

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

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

    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.

  7. #7
    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

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

    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.

  9. #9
    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

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

    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...

  11. #11
    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

  12. #12
    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

  13. #13
    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

  14. #14
    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

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

    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?

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

    Re: #ref error

    Works for me...
    Attached Files Attached Files

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

    Re: #ref error

    Have you got "Auto Calculation" switched on?

  18. #18
    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

  19. #19
    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

  20. #20
    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

  21. #21
    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

  22. #22
    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))

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

    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

  24. #24
    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

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

    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. 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