+ Reply to Thread
Results 1 to 9 of 9

Formula for Filling Data based on Criteria from another cell

  1. #1
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Formula for Filling Data based on Criteria from another cell

    I have an attached workbook that requires some sort of match/index formula I feel. I'm just learning these so I'm not very good at them yet and haven't been able to figure one out for this particular problem.

    In my worksheet I would like names to populate on sheet 2 based on the criteria entered in sheet 1 with that same matching name. For example, cell G4 of Sheet 2 should read the name 'Mike Trout' as he is an OF and was drafted by a team. I want Sheet 2 to fill with a name as soon as any kind of data is entered in column I of Sheet 1 for that name.

    Any help on this would be greatly appreciated, thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,745

    Re: Formula for Filling Data based on Criteria from another cell

    Try this formula in C4 of Sheet 2; fill down and across to H17.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The work book is attached.

  3. #3
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Formula for Filling Data based on Criteria from another cell

    Quote Originally Posted by FlameRetired View Post
    Try this formula in C4 of Sheet 2; fill down and across to H17.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The work book is attached.
    Hey this is actually the exact opposite of what I'm looking for, it should read Mike Trout in Cell G4 not Team 1 and I don't need the names in column A, just under the position the player qualifies for. Any ideas?

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Formula for Filling Data based on Criteria from another cell

    B4=IFERROR(INDEX('Sheet 1'!$C:$C,SMALL(INDEX(('Sheet 1'!$H$3:$H$16<>B$3)*10^10+ROW('Sheet 1'!$H$3:$H$16),0),ROW($A1))),"")

    Try this and copy across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Formula for Filling Data based on Criteria from another cell

    Quote Originally Posted by nflsales View Post
    B4=IFERROR(INDEX('Sheet 1'!$C:$C,SMALL(INDEX(('Sheet 1'!$H$3:$H$16<>B$3)*10^10+ROW('Sheet 1'!$H$3:$H$16),0),ROW($A1))),"")

    Try this and copy across
    This is sort of what I'm looking for, although, I only want the sheet 2 to populate a player if data is entered in Column I of Sheet 1. So only Mike Trout should show up on Sheet 2 because he's the only player with data in column I of Sheet 1.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Formula for Filling Data based on Criteria from another cell

    Try this Array Formula in B4 which requires confirmation with Ctrl+Shift+Enter instead of Enter alone.
    Please Login or Register  to view this content.
    Confirm with Ctrl+Shift+Enter and then copy across and down.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Formula for Filling Data based on Criteria from another cell

    Sorry
    =IFERROR(INDEX('Sheet 1'!$C:$C,SMALL(INDEX((('Sheet 1'!$H$3:$H$16<>B$3)+('Sheet 1'!$I$3:$I$16=""))*10^10+ROW('Sheet 1'!$H$3:$H$16),0),ROW($A1))),"")
    Try this and copy across

  8. #8
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Formula for Filling Data based on Criteria from another cell

    Quote Originally Posted by sktneer View Post
    Try this Array Formula in B4 which requires confirmation with Ctrl+Shift+Enter instead of Enter alone.
    Please Login or Register  to view this content.
    Confirm with Ctrl+Shift+Enter and then copy across and down.
    Perfect thanks! Thanks everyone for your help on this!

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Formula for Filling Data based on Criteria from another cell

    You're welcome and 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] Formula for Filling Data based on Criteria from a Drop Down
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2015, 05:35 PM
  2. [SOLVED] Formula for Filling Data based on Criteria from a Drop Down
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-31-2015, 02:49 AM
  3. Filling a cell with YES based on data from another sheet
    By smartcard in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-01-2014, 07:26 AM
  4. [SOLVED] Pre-filling data based on a cell
    By beleza.jake in forum Excel General
    Replies: 15
    Last Post: 09-05-2012, 05:20 PM
  5. Filling in a cell based on another cells date criteria
    By cmatera in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-21-2008, 10:11 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