+ Reply to Thread
Results 1 to 3 of 3

How to add ROWS FX to a CountIFS fX so the last factor updates vertically and horizontally

  1. #1
    Registered User
    Join Date
    08-06-2017
    Location
    Glendale, California
    MS-Off Ver
    excel
    Posts
    57

    How to add ROWS FX to a CountIFS fX so the last factor updates vertically and horizontally

    Hi there,

    I have made a sheet that takes raw data from machine maintenance modes and determines the reasons used, the average downtime, amount of times it goes down, etc... Currently, I am trying to automate the sheet as much as possible and am currently stuck with the last factor of each formula.

    The sheet has 2 tabs. The "Query" Tab which has the raw data and the "Data" tab has the averages. Currently, I am using three formulas to do this
    ---=COUNTIFS(Query!$B:$B,C3,Query!$E:$E,C$1,Query!$Q:$Q,$A$2)
    ---=IFERROR(averages(Query!$L:$L,Query!$B:$B,C3,Query!$E:$E,C$1,Query!$Q:$Q,$A$2))
    ---=IFERROR(averageifs(Query!$M:$M,Query!$B:$B,C3,Query!$E:$E,C$1,Query!$Q:$Q,$A$2))

    As you notice, each formula ends in $A$2. The formulas are copied horizontally and vertically. A2 is reading the month in the "Data" sheet and matching it to the month in the "Query" tab. I would like the formula to somehow state consistent when copied horizontally and update to A9 or A18 as it's copied down and gets to the next month section.

    Please let me know how and if this can be done.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: How to add ROWS FX to a CountIFS fX so the last factor updates vertically and horizont

    Please try at D3

    =COUNTIFS(Query!$B:$B,$C3,Query!$E:$E,LOOKUP("zz",$C$1:C$1),Query!$Q:$Q,LOOKUP("zz",$A$2:$A2))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-06-2017
    Location
    Glendale, California
    MS-Off Ver
    excel
    Posts
    57

    Re: How to add ROWS FX to a CountIFS fX so the last factor updates vertically and horizont

    Thank you BO_RY for the formula. That worked. I seem to be able to add those to the other two formulas without issue.

    I really appreciate the help!!
    Last edited by yourik; 06-25-2020 at 02:55 PM.

+ 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] Add New Records Horizontally Not Vertically ?
    By Logit in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-19-2019, 04:51 AM
  2. customize the font type and size, as well as high rows,horizontally and vertically
    By salmasaied in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-03-2016, 11:45 AM
  3. Replies: 2
    Last Post: 11-07-2014, 06:10 PM
  4. Cut duplicate rows vertically and paste horizontally
    By shreeja178 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-28-2014, 05:54 PM
  5. Can you autofill horizontally and vertically?
    By keez1993 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2014, 03:59 AM
  6. [SOLVED] Is it possible to freeze both vertically and horizontally?
    By claralou in forum Excel General
    Replies: 4
    Last Post: 09-27-2013, 05:04 AM
  7. Replies: 6
    Last Post: 04-05-2013, 07:31 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