+ Reply to Thread
Results 1 to 5 of 5

Formulas behaving different

  1. #1
    Forum Contributor
    Join Date
    12-30-2021
    Location
    Mount Gambier, Australia
    MS-Off Ver
    19
    Posts
    108

    Formulas behaving different

    In my workbook I have a couple of issues I'm sure I'm just not seeing it.

    ISSUE1: P8 =
    Please Login or Register  to view this content.
    which is meant to equal O8
    Please Login or Register  to view this content.
    and N8
    Please Login or Register  to view this content.
    These are basically the number of days

    ISSUE2: Conditional formatting

    The conditional formatting at cells B15, I15 and P15 should produce the same results but don't

    *I tried to post a cropped screenshot but kept posting whole image so I left it off*


    B15 goes all the way to 109, I15 is correct and P15 goes one line more than it should
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: Formulas behaving different

    For the formula:
    N8 is calculating wrong. Try this formula instead
    =COUNTIF(B15:B109,">0")+COUNTIF(I15:I109,">0")+COUNTIF(P15:P109,">0")

    P8 is missing the first row in the SUM, so should instead be =SUM(P3:P7)

    O2 to O7 is miscalculating as some of the data is text instead of a value (e.g. cell Q103)

    For the conditional formatting:
    try change the formulas to this syntax =AND($P15>0, $P15<=$D$5) - its getting confused if the value in columns B/I/P are 0 or blank, so this formula will capture both
    <<< If you have valued anyone's contributions in this thread, please click * to thank them for their efforts

  3. #3
    Forum Contributor
    Join Date
    12-30-2021
    Location
    Mount Gambier, Australia
    MS-Off Ver
    19
    Posts
    108

    Re: Formulas behaving different

    @askMeAboutExcel

    Thanks that was great.

    All I need to do now is get O2:O7 (O8) to match N8 and P8 and it should be almost perfect.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: Formulas behaving different

    Found it - Cell O6, change

    =COUNTIFS(C15:C109,">0",C15:C109,"<1")+COUNTIFS(J15:J109,">0",J15:J109,"<1")+COUNTIFS(Q15:Q109,"=0",Q15:Q109,"<1")
    to
    =COUNTIFS(C15:C109,">0",C15:C109,"<1")+COUNTIFS(J15:J109,">0",J15:J109,"<1")+COUNTIFS(Q15:Q109,">0",Q15:Q109,"<1")

  5. #5
    Forum Contributor
    Join Date
    12-30-2021
    Location
    Mount Gambier, Australia
    MS-Off Ver
    19
    Posts
    108

    Re: Formulas behaving different

    Thanks @AskMeAboutExcel

+ 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] Variable not behaving as it should
    By jayherring86 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 09-10-2016, 02:55 PM
  2. UDF not behaving as Sub....
    By Vikas_Gautam in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-13-2014, 12:09 AM
  3. [SOLVED] If () formula not behaving...
    By ChrisXcel in forum Excel General
    Replies: 5
    Last Post: 04-02-2014, 06:45 PM
  4. [SOLVED] Lookup behaving strangely
    By markainsworth in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-29-2013, 10:09 AM
  5. [SOLVED] IF behaving ... well IFfy
    By brynbaker in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-11-2013, 05:59 AM
  6. [SOLVED] Cursor not behaving
    By southwood in forum Excel General
    Replies: 3
    Last Post: 07-15-2006, 08:45 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