+ Reply to Thread
Results 1 to 10 of 10

Identical formulas, One works -the other won't What is wrong ?

  1. #1
    Forum Contributor
    Join Date
    08-18-2021
    Location
    Pennsylvania
    MS-Off Ver
    Offic 365
    Posts
    110

    Identical formulas, One works -the other won't What is wrong ?

    I know it is normally requested that a sample spreadsheet be provided however those I'm working on are large and multiple making it very hard to provide a proper example of a spreadsheet. In lue of that I have created a work document showing two formulas both of which are in the cells and the only differences between them are who data is being looking at and which cell the data is to compare the result to. I've struggles with this #CALC error for 7 hours at this point and cannot for the life of me figure out what is wrong. Hopefully someone will take a look at what I've provided and be able to determine what the problem is for me.

    Thank you for trying in advance, I'm simply burnt out trying to figure it out.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,224

    Re: Identical formulas, One works -the other won't What is wrong ?

    I think you might need (Individual #3) and you need to check it for a leading space, by the looks of it.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    08-18-2021
    Location
    Pennsylvania
    MS-Off Ver
    Offic 365
    Posts
    110

    Re: Identical formulas, One works -the other won't What is wrong ?

    Thank you for taking a look at my issue, However the way the wording is i.e. Individual #3 is exactly
    how it is the drop selection list on the table the formula is looking at.

    INDIVIDUAL NAME DROPDOWN SELECTION BOX
    (Husband)
    (Wife)
    Individual #3
    Individual #4
    Individual #5
    Individual #6
    Individual #7

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,224

    Re: Identical formulas, One works -the other won't What is wrong ?

    Not in the screenshot in the document attached, though.

  5. #5
    Forum Contributor
    Join Date
    08-18-2021
    Location
    Pennsylvania
    MS-Off Ver
    Offic 365
    Posts
    110

    Re: Identical formulas, One works -the other won't What is wrong ?

    AliGW yes you are correct the screen shot is merely the tab and column that the formulas are in to do the calculations. The descriptive name you see on line 22
    is just a description only.

    The actual data the formula is looking at on a separate tab table has the selections to choose from that you see in the second message, those are
    exactly how they are on that table sheet.

    NOTE: AliGW I have created a short version of the spreadsheet that has the information I'm having problems with a formula discussed prior for you or anyone for that matter to look at and see if you can determine the problem since I cannot.

    The formulas from the other sheet have been copied to this sheet which actually is where the data comes from and the formula still gives the same result. I have changed the name from Individual #3 to Person -3 but still get the same result.

    Also I have noticed as of yesterday I have a sheet with a formula that till yesterday showed the formulas resulting answer - now it wont regardless of what I try to fix it. The cell will only show the formula
    as text as long as you remove the equals sign in front of it. Have you ever come across this situation before?

    Fred H
    Attached Files Attached Files
    Last edited by Fred Houck; 11-29-2023 at 01:59 PM. Reason: Added a sample sheet showing the issue

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,594

    Re: Identical formulas, One works -the other won't What is wrong ?

    In the logical_test part of the formula there is: ...($C$7:$C$67)="Person 3"...
    In the Value_if_true part of the formula there is: ...($C$7:$C$67)="Person -3"...
    Change the Logical_test part to "Person -3" also.
    BTW, Excel reports a circular reference in cell C95. I believe the formula there should be: =SUMPRODUCT(($B$7:$B$67=$C$94)*(MONTH($B$7:$B$67)=MONTH($C$94))*$E$7:$E$67)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Forum Contributor
    Join Date
    08-18-2021
    Location
    Pennsylvania
    MS-Off Ver
    Offic 365
    Posts
    110

    Re: Identical formulas, One works -the other won't What is wrong ?

    Hi,
    Thanks for pointing that type-o for me. I did make that change so both now say "Person -3" however I'm still left with the same as yet
    unsolved problem. I noticed when I open the formula window to inspect the formula I keep regardless of where I put parentheses I get
    #Value! or Empty Arrays Not Permitted Errors.

    This issue makes no sense considering the other two rows looking for the same answers using the same formula work flawlessly !

    Back to the drawing board.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,253

    Re: Identical formulas, One works -the other won't What is wrong ?

    One - not related - error is

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    should be

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The incorrect formula only "works" because MONTH(n) always returns 1 and you are interested in month1 !

    I suspect the #VALUE! error is because there is no data for "Person -3" in January; I don't have 365 so I cannot test the formula.

    "old_fashioned" (much simpler) solution

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 12-01-2023 at 03:27 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Forum Contributor
    Join Date
    08-18-2021
    Location
    Pennsylvania
    MS-Off Ver
    Offic 365
    Posts
    110

    Re: Identical formulas, One works -the other won't What is wrong ?

    OMG !!!!!!!!!!!!!!!!!!
    John - Your solution has made my problem go away I can't thank you enough, I have been struggling with this specific formula for days -literally from the time I got up till 11:30 at night trying all kinds of way to write it to no avail. I guess there's a point where your so frazzeled you can't do anything right.

    Thank you so much - now I can move on to other issue's...

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,253

    Re: Identical formulas, One works -the other won't What is wrong ?

    To avoid "frazzled brain", please get to the forum much earlier- after a few hours of trying, never mind days!

    Anyway, glad it is resolved

+ 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] Sumproduct works on the wrong column
    By NicBKK in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-15-2023, 10:40 PM
  2. Two "identical" array formulas, one works but the other doesn't, please help!
    By Angiebourke in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-16-2021, 10:56 AM
  3. [SOLVED] Identical Formulas from Identical Data Sets Return Different Results
    By EverClever in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-28-2018, 06:56 PM
  4. Formula works but for wrong date, please help
    By laurabach in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2013, 06:59 PM
  5. Looping works wrong (VBA compare)
    By rinser in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 04-10-2009, 08:31 AM
  6. One Macro Works - second identical in function - overwrites
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2008, 07:04 AM
  7. Macro works, identical Function doesn't....why?
    By Paul S in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-12-2005, 07:05 AM

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