+ Reply to Thread
Results 1 to 6 of 6

How to reference data based on formula Result

  1. #1
    Registered User
    Join Date
    08-01-2020
    Location
    sa
    MS-Off Ver
    2013
    Posts
    2

    How to reference data based on formula Result

    HELLO EVERYONE !

    Hope all had a great day ...

    I 'm new to this forum and i need a guidance in creating a formula to reference/showing list the actual data based on this formula result

    =SUMPRODUCT((MONTH(Table1[DateofHire])=J71)*(YEAR(Table1[DateofHire])=2020),--ISNUMBER(SEARCH($E$71,Table1[Department])))

    I have attached a sample of what i mean in this regard ...


    Thank you in advance
    Attached Files Attached Files
    Last edited by Bsh97; 08-01-2020 at 06:45 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: How to reference data based on formal Result

    Thank you for the clarification
    Last edited by protonLeah; 08-01-2020 at 07:22 PM.
    Ben Van Johnson

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: How to reference data based on formula Result

    You don't have any data in row 71 on any sheet.....
    Are you just trying to return a list of personnel hired on/after some date?

    Also, you have a long formula, vis.,

    Please Login or Register  to view this content.
    in C8 & H8 to return a month name. It can be replaced with:
    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: How to reference data based on formula Result

    There's no reason for those merged cells.

    New hire list***:
    C10
    Please Login or Register  to view this content.
    D10
    Please Login or Register  to view this content.

    ***no merged cells
    ***Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-01-2020
    Location
    sa
    MS-Off Ver
    2013
    Posts
    2

    Re: How to reference data based on formula Result

    Quote Originally Posted by protonLeah View Post
    There's no reason for those merged cells.

    New hire list***:
    C10
    Please Login or Register  to view this content.
    D10
    Please Login or Register  to view this content.

    ***no merged cells
    ***Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).


    It works perfectly Thank you very much

    but i'm not sure how to drag the cell with your formula to show the rest of the list

    Also i'm curious to know what is the reason in referencing the cell A1 in the formula ?
    Last edited by Bsh97; 08-02-2020 at 02:23 PM.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: How to reference data based on formula Result

    IF((MONTH(Table1[DateofHire])=G3)*(YEAR(Table1[DateofHire])=2020),ROW(Table1[DateofHire]))
    Returns the row numbers of the values that satisfy the test conditions (there could be gaps that return NA's). This array is input into the SMALL function as the first parameter. The second parameter, ROW(A1) just returns the row number of cell A1, i.e., 1. So the SMALL will return data in the cell with the smallest row number. As you drag the formula down, A1 increments to A2 (2), A3(3), etc. So the result is a list starting with the first value found, second value, etc.

+ 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. Formula for returning result based multiple reference cells
    By baasman73 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2018, 03:17 AM
  2. [SOLVED] Linking 1 tab to another based on a cell result, picks a column based on result formula
    By MattExcelLearner in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-23-2018, 11:08 AM
  3. Replies: 1
    Last Post: 08-21-2012, 02:46 PM
  4. Display data reference from another worksheet based on cell reference
    By Drew123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2011, 03:52 PM
  5. Converting a Formal Name
    By pwestfield in forum Word Formatting & General
    Replies: 1
    Last Post: 01-05-2010, 05:32 PM
  6. Formal form one tab to another tab
    By 2EZMolson in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-16-2009, 06:10 PM
  7. Advanced formula - Return result & Show Cell Reference of result
    By Irv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-05-2006, 10:40 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