+ Reply to Thread
Results 1 to 5 of 5

[SOLVED] Select an index from a sheet

  1. #1
    Registered User
    Join Date
    09-11-2021
    Location
    Sofia,Bulgaria
    MS-Off Ver
    365
    Posts
    22

    [SOLVED] Select an index from a sheet

    Hello. I have 12 sheets with the names of the months. In these 13 sheets I display the relevant information, but I am limited to only 6 IF. Is there a way to select data from all 12 sheets according to the month? I use this formula, but as I said I am limited to only 6 months in my case.

    =IF(MONTH(E3)=1;INDEX(January!C195:AH207;2;1+DAY(E3));
    IF(MONTH(E3)=2;INDEX(February!C195:AH207;2;1+DAY(E3));
    IF(MONTH(E3)=3;INDEX(March!C195:AH207;2;1+DAY(E3));
    IF(MONTH(E3)=4;INDEX(April!C195:AH207;2;1+DAY(E3));
    IF(MONTH(E3)=5;INDEX(May!C195:AH207;2;1+DAY(E3));
    IF(MONTH(E3)=6;INDEX(June!C195:AH207;2;1+DAY(E3))))))))
    Last edited by rosenirs; 09-11-2021 at 02:08 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: Select an index from a sheet

    Create a 2 column table with numbers 1 to 12 in first column and months (text) January to December in the second

    in this example the table is in columns I:J (I1:J12)

    then use

    =INDEX(INDIRECT("'" & VLOOKUP(Month(e3),$I$1:$J$12,2,FALSE) & "'!C195:AH207"),2,1+DAY(E3))

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Select an index from a sheet

    Hi & welcome to the board.
    Two more options
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or some what longer, but not volatile
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    you just need to add the rest of months to the choose

  4. #4
    Registered User
    Join Date
    09-11-2021
    Location
    Sofia,Bulgaria
    MS-Off Ver
    365
    Posts
    22

    Re: Select an index from a sheet

    Thanks to both of you. Everything you offered me works. You are great.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: [SOLVED] Select an index from a sheet

    Glad to help & thanks for the feedback.

+ 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] Select sheet with index numbem
    By Tpleme in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2018, 10:47 AM
  2. [SOLVED] VBA - Create New Sheets Based on Index Sheet Cell Values with Link to Index Sheet
    By order in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-02-2017, 06:23 PM
  3. Copy tabs names to index sheet in alphabetical order
    By cjharley1450 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2015, 01:00 PM
  4. Select from a range using Index and Match
    By Pegaso in forum Excel General
    Replies: 4
    Last Post: 07-09-2010, 05:11 PM
  5. Index+Match to select cell?
    By Bjorne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2010, 07:39 AM
  6. Select sheet inside or outside other select
    By MadRue in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2007, 07:13 PM
  7. [SOLVED] Select a column based on a index
    By VH in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2006, 05:45 AM

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