+ Reply to Thread
Results 1 to 7 of 7

Finding Count From Last Few Cells in Array

  1. #1
    Registered User
    Join Date
    11-30-2013
    Location
    Kigali
    MS-Off Ver
    Excel 2010
    Posts
    4

    Finding Count From Last Few Cells in Array

    Friends,

    I have one data as shown in attachment. I need excel formula to count values with cell > 1.75 from last 7 columns (i.e from Col I to O) only.

    Please help to build one formula for me
    Attached Images Attached Images

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Finding Count From Last Few Cells in Array

    Try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    11-30-2013
    Location
    Kigali
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Finding Count From Last Few Cells in Array

    Dear olly,

    I am sorry was not able to explain my query properly.

    I want count of last specified cells in an array of range of a certain value.

    In our example i want to count where values >1.75 appeared from array specified as A to O in last few specified cells (i.e I to O)

    Please support

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Finding Count From Last Few Cells in Array

    Nope, still not understanding what you want. Can you attach a workbook showing what you have, and what your desired outcome is.

    I'm not clear how you are specifying your total array (A:O), your required array (I:O) and your threshold value (1.75).

  5. #5
    Registered User
    Join Date
    11-30-2013
    Location
    Kigali
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Finding Count From Last Few Cells in Array

    Dear Olly,

    I have attached a worksheet.

    If you see the sheet, we have DATES ranging from 14 Nov to 27 Nov. Now as I have applied countif in COL B giving array range from D2:Q2 with criteria >1.75, the result shown is 5 because there are 5 values from 14 Nov to 27 Nov with >1.75. right!

    I actually want to make a formula in COL C which should have array range from D2:Q2 and by giving it 7, it should mean that it will consider only last seven days 21 Nov to 27 Nov from this array range of D2:Q2.

    So if i do this manually, output should now be 3 as values >1.75 are present at 21 Nov, 23 Nov and 25 Nov in last seven days in array D2:Q2.
    Attached Files Attached Files

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Finding Count From Last Few Cells in Array

    So , something like this:

    Put your value of 7 in cell C1.

    In C2, try:

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

  7. #7
    Registered User
    Join Date
    11-30-2013
    Location
    Kigali
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Finding Count From Last Few Cells in Array

    Lots of Thanks ... It did the trick !

+ 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. finding text in cells using Array
    By Hein in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2007, 03:04 PM
  2. Count if array contains cells of a certain value
    By Melissa in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. Count if array contains cells of a certain value
    By bj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  4. Count if array contains cells of a certain value
    By Melissa in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. [SOLVED] Count if array contains cells of a certain value
    By Melissa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2005, 10:05 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