+ Reply to Thread
Results 1 to 7 of 7

CountIfs - Wertewechsel zählen (Counting Changes in Values)

  1. #1
    Registered User
    Join Date
    12-08-2017
    Location
    Hannover
    MS-Off Ver
    2007
    Posts
    7

    CountIfs - Wertewechsel zählen (Counting Changes in Values)

    Good Morning sweeties,

    ok here is my problem.
    In column A i have different values which is first repeated for some cells, then it changes one time and then it repeats again.
    A1 - 15, A2 - 15, A3 - 2, A4 - 2, A5 - 2, A6 - 36...

    and in column H there is either NS, SS or FS as values.

    Now i want to count for i.e. all rows where is standing NS in column H and if the value in column A is different from the value in the cell one row above (A2 different than A1)

    In the example above it would count A3 - 2 and A6 - 36

    My try was:


    Please Login or Register  to view this content.
    It doesnt work, invalid variable type...

    Can anyone help?

    Thank ya :*
    Last edited by AliGW; 01-02-2018 at 04:28 AM.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,537

    Re: CountIfs - Wertewechsel zählen

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-08-2017
    Location
    Hannover
    MS-Off Ver
    2007
    Posts
    7

    Re: CountIfs - Wertewechsel zählen

    It doesnt work
    Please Login or Register  to view this content.
    (the column changed from H to F)

    Errormessage:
    Runtime Error 1004

    software- or objectbased error (i hope the translate doesnt destroy the understanding completely)

    thanks

    ps: if i use the code you give me up there i get a message Box with the value "0" (ofcourse cause in column H is no "NS" anymore)

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,537

    Re: CountIfs - Wertewechsel zählen

    Yes, you have changed the "H" Column to the "F" Column but not the offsets.
    You cannot go 7 left, c.Offset(,-7) from Column 5, Column F. You need to change the -7 to a -5
    Let us know if that works.
    Have good time at the Weihnachtsmarkt in Celle

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,537

    Re: CountIfs - Wertewechsel zählen

    Did it work?

  6. #6
    Registered User
    Join Date
    12-08-2017
    Location
    Hannover
    MS-Off Ver
    2007
    Posts
    7

    Re: CountIfs - Wertewechsel zählen

    sry, wasnt at work until now,

    yes it works now. thank you all for your help. :*

  7. #7
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,397

    Re: CountIfs - Wertewechsel zählen

    In future, please ensure that your thread titles are in English. Thanks.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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 to replace countifs as countifs don't work on external source reference
    By KrishnaSagar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-02-2017, 02:33 AM
  2. How can I run CountIfs + CountIfs without double counting?
    By hiitsjessie in forum Excel General
    Replies: 1
    Last Post: 02-06-2017, 04:49 PM
  3. [SOLVED] Countifs + Countifs - replacement?
    By JulieQ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2015, 03:02 PM
  4. COUNTIFS OR COUNTIFS needs to work
    By joshbellfi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2013, 10:55 AM
  5. COUNTIFS OR...multiple countifs without duplication in the numbers
    By HooligaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 09:53 AM
  6. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  7. Countifs
    By mojobaabby in forum Excel General
    Replies: 3
    Last Post: 08-10-2011, 11:37 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