+ Reply to Thread
Results 1 to 11 of 11

Help with #VALUE! error please

  1. #1
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Help with #VALUE! error please

    Sorry for all the mess. I did even cut a whole bunch out to try to simplify it but there's a lot of connections to figure out it's kinda difficult.

    But it's simple, just the tops of columns C, D, and E. The three counters. They're compiling data for past 30/60/90 days.

    C works, but D and E don't.

    You'll notice they rely basically on the same formula as C just different columns.

    I'm not so good at figuring out by tracing the calculations what's wrong with a formula but I think Excel said it had to do with the column in the table under C, yet the working formula under C also uses this column and didn't run into this #VALUE! error, so what's going on? Thanks
    Attached Files Attached Files
    Excel 1.0.1 (16.0.14326.20140) (Android)
    Excel 2010 14.04.4760.1000

  2. #2
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Help with #VALUE! error please

    Your formulas are right, the reason it is not working is because you have #VALUE errors in your net profit column and then you have non dates in your date listed2 column

    To test, I simply removed all blanks, #VALUE errors, and other items that were not either a currency in D or a date in E and then the formulas worked.

    sample.jpg
    Last edited by NewYears1978; 03-19-2023 at 12:01 AM.

  3. #3
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468
    Quote Originally Posted by NewYears1978 View Post
    Your formulas are right, the reason it is not working is because you have #VALUE errors in your net profit column and then you have non dates in your date listed2 column

    To test, I simply removed all blanks, #VALUE errors, and other items that were not either a currency in D or a date in E and then the formulas worked.

    Attachment 822239


    Okay, thanks so much! So how do I get it to ignore these errors?

    Like, is there an if error then skip?
    Last edited by juntjoo; 03-19-2023 at 06:09 PM.

  4. #4
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: Help with #VALUE! error please

    but why isn't column C affected by the errors under "net profits" even though it too uses it?

  5. #5
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Help with #VALUE! error please

    Quote Originally Posted by juntjoo View Post
    but why isn't column C affected by the errors under "net profits" even though it too uses it?
    Hm, that's a good question which has got me confused. Usually a SUMIF will always error (in my experience) if the data type isn't correct or there are errors. I can't seem to figure out why C works but not D and E..

    Also, an IFERROR would not work here because since the whole thing is erroring it would just return the error value you chose. I don't think there is a way for the SUMIF to ignore error or improper cells..but I could be wrong.
    Last edited by NewYears1978; 03-20-2023 at 10:50 PM.

  6. #6
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468
    Quote Originally Posted by NewYears1978 View Post
    Hm, that's a good question which has got me confused. Usually a SUMIF will always error (in my experience) if the data type isn't correct or there are errors. I can't seem to figure out why C works but not D and E..
    Any way you can imagine to ignore the #VALUE! 's? If not not the end of the world, I'll just have to make sure I have a valid value in there

  7. #7
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Help with #VALUE! error please

    Sorry I had just edited my other post. I don't think Excel can do that, even when using PowerQuery you'll end up with errors like this. Errors need to be replaced with a value.

    Why do you have #VALUE errors there in the first place, there are no formulas so where did they come from?

    Edit:
    I am dumb, that column is a formula. Let me test something and report back.

  8. #8
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Help with #VALUE! error please

    Change your formula in C net profits to this - should work I think.

    =IFERROR(IF(ISNUMBER([@[gross profit b4 labor & taxes]]),[@[gross profit b4 labor & taxes]],[@[1(st comp)]]-[@total]-[@5]),"")
    Last edited by NewYears1978; 03-20-2023 at 10:55 PM.

  9. #9
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: Help with #VALUE! error please

    hey, thanks. But could you re-translate within the spreadsheet again? I had drastically simplified it. And maybe this way it will be easier for me to decipher what you did. Especially since you totally changed the function. This is getting deep!
    Attached Files Attached Files

  10. #10
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: Help with #VALUE! error please

    LOL, never mind. I JUST figured out on my own what you did AFTER reading what you replied but misunderstanding it. So I'm good. Best solution. And good thing I came to it on my own, even though I had to ignore you and take credit for it first lol. But I'm still curious why column A formulas didn't have any issues if you have any idea. Cuz I'm just always looking for the shortest code

  11. #11
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Help with #VALUE! error please

    Quote Originally Posted by juntjoo View Post
    LOL, never mind. I JUST figured out on my own what you did AFTER reading what you replied but misunderstanding it. So I'm good. Best solution. And good thing I came to it on my own, even though I had to ignore you and take credit for it first lol. But I'm still curious why column A formulas didn't have any issues if you have any idea. Cuz I'm just always looking for the shortest code

    Haha great, I was going to say what I did was pretty simple. IFERRORS are great to use in a lot of cases. If there is any error #VALUE, #N/A for example, it will return a value you suggest (in our case a blank which was the "" part.)

    I looked at your file for quite some time and NEVER could understand why it was working for that one column but not the others. It technically should not have worked in either. That was quite a messy/large/complex spreadsheet with lots of stuff going on so it is really easy to break something.

+ 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] Odd Error Handling Behaviour; goes to error handler even when no error?
    By kalikj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-04-2018, 10:04 AM
  2. [SOLVED] Run-tim error -2147467259(80004005): Automation error Unspecidied error
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2014, 12:12 PM
  3. Excel macro (compile error. syntax error.) error
    By salar_younis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2014, 06:11 AM
  4. 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
  5. 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
  6. 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
  7. [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