+ Reply to Thread
Results 1 to 17 of 17

2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

  1. #1
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    Hi,

    Thanks for your help received from forums members.
    I understanding a lil more excel, but (always is a but)
    Need some help, is not big problem, but i'm confused on know to
    apply some Formulas In Cell Range when update the Data (scroll data)
    While no update the data, everything work fine, But the problem is that
    data have to be Updated everyday.

    WHAT I NEED :

    -.Most of the Rows/Range Cell working as expected,

    Except on :
    1-. Row/Cell CC2, CD2 and CG2 (i'm using COUNTIF Formula)
    and
    2-. Row Row/cell J3:J12 (I'm using MIN(IF..(ROW..)

    -On CC2,CD2,CG2 I need to Insert a Formula using COUNTIF and INDIRECT
    to count how many times the VALUES appear, starting ROW 37(as last record).
    (actually i'm using Formula
    Please Login or Register  to view this content.
    (i don't know how to apply the COUNTIF / INDIRECT)

    -.On J3:J12 I need to Extract when was the last time that each number
    from 0 to 9 show up/ not show up. starting on ROW 37(as last record).
    think i need to use the INDIRECT plus the MIN/IF (I guess)
    (actually i'm using Formula
    Please Login or Register  to view this content.
    PROBLEM
    I have a Macro that allows me to Insert the Latest DATA at Row C:37
    (at all time and using command button)

    The Formulas above mentioned, start to read ROW 37 as today record.
    It read/Update from UP/Down
    (Row 37 Today record, ROW 38 Yesterday Record,ROW 39 as a day before Yesterday,and so on..)

    When i Update the DATA (with today record), The ROW37 Update with new Values the whole sheet
    except
    J3:J12 and CC2,CD2,CG2, say that this formula was reading R37 and after the
    Update it read ROW:38, and if Update againg, Then read ROW39
    it's keep reading as bsolute reference

    what i need is that each time after UPDATE the data, cells J3:J12 and CC2,CD2,CG2
    must read at all time ROW 37.

    Please, Sample attached on post #5


    HAPPY THANKSGIVING DAY, AND GOD BLESS YOU ALL.

    thank you so much.

    Best Regards

    David
    Last edited by david gonzalez; 11-28-2013 at 09:04 PM. Reason: tell everyone that Attachment is located on post #5

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    Please upload your file here. Not all members are able - or willing - to download a file from file-hosting sites like that

    If your range is not long enough, why not just increase it to, so 10000...
    =COUNTIF($CO37:$CO10000,CC1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    Hi Mr FDibbins,

    I tryed to upload the file, but seems too large (3.57mb)

    Regarding the
    Please Login or Register  to view this content.
    is not a problem, i had it in 1200.

    The problem is that thoses cell formulas don't read the ROW37 after the Data is updated, it keep pulling information from
    the same spot
    If read R37 (after Update) it Jump and read R38, if updated again then read R39, if again then R40 ect,etc..

    What i need is after each time get data updated, must pull information from R37.

    How do manage the Upload when is that big?

    Thank you, for fast response

    Best regards

    David

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    If the file is too big - I think 1 meg is the limit), remove any unnecessary sheets and rows/columns that do not relate directly to what the problem is. Also, only provide enough rows to show as many samples of your data so that we can see what you want

  5. #5
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    Hi Mr FDibbins,

    I'm sorry, i didn't think about it. some time i act as a dummy

    File already uploaded.


    Thanks

    David
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    Thanks fo r the file

    Looking at it, a few observations...
    1. You dont need to use ARRAY formulas for all those countif() formulas (cols Y:AH and in CC2:CG2)
    2. why did you decide to have your table running from highest date (row 37) to earliest date (A162), instead of having it run from Jan 1 down? This way, you just add data to the end of your table, instead of (I presume) adding a new row for each new day?

    I think I understand what you want, but if you insert a new row for the next date, that row (37?) will always stay 37, and the end of the table will increase (from 162 to 163). If you change your formula to start in row 36, then when you add a new row at 37, the formula will aself-adjust accordingly

  7. #7
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    Hi Mr FDibbins,

    1. You dont need to use ARRAY formulas for all those countif() formulas (cols Y:AH and in CC2:CG2)
    - i'm using array because i research and it was the only think that i get to do the job acording what i need
    Question : it is some other formula to do the same and i could use?

    2. why did you decide to have your table running from highest date (row 37) to earliest date (A162), instead of having it run from Jan 1 down? This way, you just add data to the end of your table, instead of (I presume) adding a new row for each new day?
    -. I need to work with small block of data (not the whole data) but indeed must be the latest data Indeed (highest date)in this case
    it's lil difficult to set it the sheet, but later is lot easier to keep and input the info with out mistakes.

    -I think I understand what you want, but if you insert a new row for the next date, that row (37?) will always stay 37, and the end of the table will increase (from 162 to 163)

    Yes, it might increase up to 6000 but that's is okai, what always need is to work with latest date starting with row 37.


    Thank you Sir.



    David

  8. #8
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    Hi Mr FDibbins,

    1. You dont need to use ARRAY formulas for all those countif() formulas (cols Y:AH and in CC2:CG2)
    - i'm using array because i research and it was the only think that i get to do the job acording what i need
    Question : it is some other formula to do the same and i could use?

    2. why did you decide to have your table running from highest date (row 37) to earliest date (A162), instead of having it run from Jan 1 down? This way, you just add data to the end of your table, instead of (I presume) adding a new row for each new day?
    -. I need to work with small block of data (not the whole data) but indeed must be the latest data (highest date)in this case it's lil difficult to set it the sheet, but later is lot easier to keep and input the info with out mistakes.

    -I think I understand what you want, but if you insert a new row for the next date, that row (37?) will always stay 37, and the end of the table will increase (from 162 to 163)

    Yes, it might increase up to 6000 but that's is okai, what always need is to work with latest date starting with row 37.


    Thank you Sir.



    David

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    1. What I meant was you do not need to ARRAY enter the countif() formulas, just regular enter

    2. Not sure if you read this part of not?

    If you change your formula to start in row 36, then when you add a new row at 37, the formula will aself-adjust accordingly

  10. #10
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    Hi Mr FDibbins,

    yes mr FDibbins, i tried as regular countif() and read the same,

    I forgot to tell you that before my post, i tried in many ways the countif (including with absolute reference on COL then just in Row, etc,etc)


    2. Not sure if you read this part of not?

    I read it, and it's true, the table will increase from 162 to 163, then 163 to 164,..164.. and is okai, because what matter is that the Formula start to read from Row 37 up to 150 or 200 first lines, if amount of data get bigger it's fine.

    You suggest to change the macro to start in row 36?
    i just tried and column T37 Get #N/A

    David.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    No, what I meant was instead of starting the range in your formula at row 37, start it in (blank) the row above - row 36. That way, when you insert a new row at row 37, the formula will still calc from row 36, so you wont need to adjust it at all.

    For instance, change...
    =COUNTIF($CO37:$CO10000,CC1)
    to
    =COUNTIF($CO36:$CO10000,CC1)

    Try it and see...change the formula to that, then insert a new row at 37, see what happens to that formula

  12. #12
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    Hi Mr FDibbins,

    That's what i'm trying to tell you, that already did try in many different ways.
    I have installed a Macro to update the data, and is working Fine, even the COUNTIF is working fine, except that After the data is updated, its read the row (38) what i need is to keep reading Row 37.

    I Know that COUNTIF function perform this this job and INDIRECT Function keep reading the same Row (that i wish to read)

    My two Question are, How do I Apply or put together the:
    1-. COUNTIF and the INDIRECT Functions on
    Please Login or Register  to view this content.
    2-. MIN/IF/ROW and the INDIRECT to
    Please Login or Register  to view this content.
    Thanks

    David

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    That's what i'm trying to tell you, that already did try in many different ways.
    Then you maybe did not do it properly?

    Take a look at the attached. I have copied your sheet to Miday(2)

    In the new sheet, I changed the formula in ONLY CC2 to read
    =COUNTIF($CO36:$CO151,CC1)
    I left the others (CD2, CG2) the same...
    =COUNTIF($CO37:$CO151,CD1) and
    =COUNTIF($CO37:$CO151,CG1)

    I then inserted a row on 37.
    CC2 still reads...
    =COUNTIF($CO36:$CO151,CC1)
    but the other 2 now read
    =COUNTIF($CO38:$CO151,CD1) and
    =COUNTIF($CO38:$CO151,CG1)

    You are making this way more complicated than it needs to be.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    Hi Mr FDibbins,

    1-.I load the File and enable the macro,
    2-.I click the Update Button to Insert the new data, (as usual )

    and workbook get freeze, nothing happen, it won't work

    -------------------------- 0000 ------------------------
    Matter of Facts, right now i'm creating a macro, with a Command button named "Update C&G Cells"
    then i'll be able to
    1-. I update the Data
    2-. I'll click "Update C&G Cells" Button, to reload the Formula with desire Range.

    The Only inconvenience will be that i'll have to click 2 button in order to Update the Data (was clicking 1)

    and i think problem be solve it.


    Thank you so much sir

    Best Regards

    David

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    OK well as long as you got your question resolved

    Thanks for the feedback

  16. #16
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    You're welcome Mr FDibbins

    Happy Black Friday !!!!!!!!!!!!!!!!!!


    Best Regards from Miami.

    David

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,

    Indeed it was a good Black Friday for my wife and I - we are part of the idiot-fringe that go out every year. We saved a bunch (by swapping to Geicho lol) on a whole slew of exmas prezzies, and had a blast doing it

+ 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. Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 12:05 PM
  2. Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 06:05 AM
  3. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  4. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-05-2005, 11:05 PM

Tags for this Thread

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