+ Reply to Thread
Results 1 to 7 of 7

need Formula to adjust to month tabs

Hybrid View

  1. #1
    Registered User
    Join Date
    03-30-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    63

    need Formula to adjust to month tabs

    Hi Gurus

    I keep making references and this messes up my sheet, or i have to create to many sheets of a simple reason.

    I have 12 months of tabs and then one sheet that makes a summary of the month, but rather than creating the sheet each month, I would just like to have an option to change the month name in the formulas.
    Not sure I am saying it correctly.

    I have the following formula to retrieve data from a BIG data sheet, but would like an easier option when I have to do FEB or any other month Next time.

    =COUNTIFS(JAN!E:E;'F10 - Operations'!L19;JAN!BA:BA;1)
    So the "JAN" i would like to replace with FEB (According to TAB name). (There is like 100 of these, and do not want to use the REPLACE function every time)

    Can is not have a drop down to choose the month and then have the formula adjusted to that Value of the dorp down?

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: need Formula to adjust to month tabs

    It can be done with Indirect function i am not good at building Indirect without seeing the file if you can help with a sample sheet sure i can do it

    Punnam

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: need Formula to adjust to month tabs

    =COUNTIFS(INDERECT(A1&"!E:E");'F10 - Operations'!L19;INDERECT(A1&"!BA:BA");1)
    in A1there is sheetname

  4. #4
    Registered User
    Join Date
    03-30-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: need Formula to adjust to month tabs

    Thanks

    I tried it, but the figures came out totally wrong to the original formula. I have made an example. The data sheets goed for about 5000lines.
    And all my formulas is about COUNTIFS, cause it has to relay on 2 criterias.

    I made a sample. Thanks so far, did not know of an INDIRECT function.
    Attached Files Attached Files

  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: need Formula to adjust to month tabs

    =COUNTIFS(INDIRECT($A$1&"!AD:AD"),L11)
    it works

  6. #6
    Registered User
    Join Date
    03-30-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: need Formula to adjust to month tabs

    Quote Originally Posted by tim201110 View Post
    =COUNTIFS(INDIRECT($A$1&"!AD:AD"),L11)
    it works
    Great, Thanks. I found my problem, the first was my pc make all , into ;. And my reference was incorrect incorrect.

    Many Thanks, now I have also learned something! Thanks

  7. #7
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365 Version 2501 64-bit
    Posts
    1,474

    Re: need Formula to adjust to month tabs

    ronettes,

    In whichever sheet you want to show the answer (which I assume is not 'F10 - Operations'), put the month name in B3, and this in whichever cell you want to show the answer:

    =COUNTIFS(INDIRECT("'"& B3 & "'!" & "E:E");'F10 - Operations'!L19;INDIRECT("'"& B3 & "'!" & "BA:BA");1)

    Ochimus

+ 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] Conditonal formatting with index result & adjust pcs per month based on dates
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-08-2018, 03:33 PM
  2. [SOLVED] Adjust EOMONTH formula to return closest end of month date to today?
    By nobodyukno in forum Excel General
    Replies: 8
    Last Post: 01-19-2017, 07:51 PM
  3. [SOLVED] how to sort tabs by month
    By elmasguapo in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-09-2015, 12:48 PM
  4. Replies: 7
    Last Post: 01-17-2011, 11:12 AM
  5. Adjust tick marks to first day of month
    By maacmaac in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-01-2010, 10:37 AM
  6. [SOLVED] creating formula to adjust per month
    By Gibraltar13 in forum Excel General
    Replies: 2
    Last Post: 03-31-2006, 01:20 PM
  7. how to adjust formula dependent on current month
    By Ellen in forum Excel General
    Replies: 2
    Last Post: 09-02-2005, 03: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