+ Reply to Thread
Results 1 to 14 of 14

Problem with formula

  1. #1
    Registered User
    Join Date
    04-22-2008
    Posts
    31

    Problem with formula

    Here's the spreadsheet http://www.mediafire.com/?zsqtojgcynx

    Can anyone figure out why some cells in column U on sheet ‘Analysis’ are returning the answer as #VALUE!

    I think its something to do with the last part of the formula.

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Neales plese upload your workbook here by using Manage Attachments at the bottom of your new post window.
    Not all forums are the same - seek and you shall find

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    whats with the 20 files within the zip file
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Registered User
    Join Date
    04-22-2008
    Posts
    31
    The file size is more than 1mb. Its approx 2.25mb

  5. #5
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    We don't need the entire file just the sheet(s) your concerned with it just has to be a sample!

  6. #6
    Registered User
    Join Date
    04-22-2008
    Posts
    31
    I've tried to take out the other sheets but its still over 1mb. The formula links in with the other sheets anyway though.

  7. #7
    Registered User
    Join Date
    06-24-2008
    Location
    Cambridge UK
    Posts
    53
    Try posting the formula that's giving you a problem - we might be able to help from that alone.

  8. #8
    Registered User
    Join Date
    04-22-2008
    Posts
    31
    =IF(O23="","",IF(SUMPRODUCT(('Container Price List'!$A$2:$A$19959=O23)*('Container Price List'!$C$2:$C$19959=S23)*('Container Price List'!$D$2:$D$19959=P23)*('Container Price List'!$B$2:$B$19959=T23),'Container Price List'!$F$2:$F$19959),SUMPRODUCT(('Container Price List'!$A$2:$A$19959=O23)*('Container Price List'!$C$2:$C$19959=S23)*('Container Price List'!$D$2:$D$19959=P23)*('Container Price List'!$B$2:$B$19959=T23),'Container Price List'!$F$2:$F$19959)*R23,SUMPRODUCT(('Container Price List'!$A$2:$A$19959=O23)*('Container Price List'!$C$2:$C$19959=S23)*('Container Price List'!$D$2:$D$19959=P23)*('Container Price List'!$B$2:$B$19959=T23)*('Container Price List'!$L$2:$L$19959))/SUMPRODUCT(('Container Price List'!$A$2:$A$19959=O23)*('Container Price List'!$C$2:$C$19959=S23)*('Container Price List'!$D$2:$D$19959=P23)*('Container Price List'!$B$2:$B$19959=T23)*('Container Price List'!$J$2:$J$19959*4.33))))

  9. #9
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    You should state that you are using xl2007, however your problem with the formula is after your "/" try using the Formula evaluate function in xl2007

  10. #10
    Registered User
    Join Date
    04-22-2008
    Posts
    31
    sorry forgot to mention that. Only just upgraded to 2007 and still getting used to it.

    The formula returns the value that I want to divide but won't perform the last part after the "/" like you say

  11. #11
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Th value that you want to divide seems to be 5.12 is that correct?

  12. #12
    Registered User
    Join Date
    04-22-2008
    Posts
    31
    **EDIT**

    The amount to be divided depends on the cell in question. For example in cell U23 the value would be £220.18.

    If I delete the bit in bold in the formula below then that value above is returned.

    =IF(O23="","",IF(SUMPRODUCT(('Container Price List'!$A$2:$A$19959=O23)*('Container Price List'!$C$2:$C$19959=S23)*('Container Price List'!$D$2:$D$19959=P23)*('Container Price List'!$B$2:$B$19959=T23),'Container Price List'!$F$2:$F$19959),SUMPRODUCT(('Container Price List'!$A$2:$A$19959=O23)*('Container Price List'!$C$2:$C$19959=S23)*('Container Price List'!$D$2:$D$19959=P23)*('Container Price List'!$B$2:$B$19959=T23),'Container Price List'!$F$2:$F$19959)*R23,SUMPRODUCT(('Container Price List'!$A$2:$A$19959=O23)*('Container Price List'!$C$2:$C$19959=S23)*('Container Price List'!$D$2:$D$19959=P23)*('Container Price List'!$B$2:$B$19959=T23)*('Container Price List'!$L$2:$L$19959))/SUMPRODUCT(('Container Price List'!$A$2:$A$19959=O23)*('Container Price List'!$C$2:$C$19959=S23)*('Container Price List'!$D$2:$D$19959=P23)*('Container Price List'!$B$2:$B$19959=T23)*('Container Price List'!$J$2:$J$19959*4.33))))
    Last edited by Neales; 06-30-2008 at 05:27 AM.

  13. #13
    Registered User
    Join Date
    04-22-2008
    Posts
    31
    sorted it. The problem was some values in the 'Container Price List' weren't numerical.

  14. #14
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Neales thanks for psoting back!

+ 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