+ Reply to Thread
Results 1 to 4 of 4

Change range Dynamically based on some other cell value in that range and then use count

  1. #1
    Registered User
    Join Date
    06-27-2016
    Location
    India
    MS-Off Ver
    2013
    Posts
    2

    Question Change range Dynamically based on some other cell value in that range and then use count

    Hi All,

    The basic idea is that I want to count number of eating, sleeping, drinking, and so on. based on the date cell value.
    Refer screen grab to get the idea of what I am talking about.
    Count range.jpg

    For Example : When I enter value against date as 'A14' or 6/27/2016, it should give me results as :
    Eating - 2
    Sleeping - 2
    Drinking - 1
    Running - 1

    So here the range where I want to count by desired text gets changed on the basis of value entered in D18 of the date

    Help me guys.

    Thanks in advance.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,028

    Re: Change range Dynamically based on some other cell value in that range and then use cou

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    06-24-2016
    Location
    Slovakia
    MS-Off Ver
    MS Office 365
    Posts
    92

    Re: Change range Dynamically based on some other cell value in that range and then use cou

    Hi Tushar,

    you can do it using countif and index functions.

    Check attached file.
    Attached Files Attached Files
    Have a fantastic day

  4. #4
    Registered User
    Join Date
    06-27-2016
    Location
    India
    MS-Off Ver
    2013
    Posts
    2

    Re: Change range Dynamically based on some other cell value in that range and then use cou

    Bingo, this is what I was looking for. Thanks, it solved my query.

    It would be really great and helpful of u if you could explain how you did it i.e. how the formula works.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Apart from that I was not getting correct result if I append more columns, but anyhow I understood the formula(for column append part only) and replaced the number of columns from 7 to number of columns I added and it worked.

    Thnks, you made my day.!!!

+ 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. VBA Code to Change Chart Range based on new row number count
    By HGL in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2016, 02:15 PM
  2. Dynamically fill range of columns based on value of cell in another sheet
    By indba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2014, 01:56 AM
  3. [SOLVED] Formula to count frequency of data in cell range based on data in different cell range
    By jrosko1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2013, 09:47 AM
  4. [SOLVED] Change range in formula based on changing row count
    By razz0807 in forum Excel General
    Replies: 6
    Last Post: 04-18-2012, 09:51 AM
  5. Change count range vs cell value!
    By stewart08 in forum Excel General
    Replies: 8
    Last Post: 08-21-2011, 06:45 AM
  6. How to change Pivot Range dynamically(Macro)
    By leninbabu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2009, 06:38 AM
  7. Dynamically change cell range in formula by background color?
    By albert@netmation.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2006, 05:15 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