+ Reply to Thread
Results 1 to 6 of 6

Populate cells based on content

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    54

    Populate cells based on content

    Hello There,

    Here's what I'm working with,

    1. Column A has Clause No
    2. Columns B, C, D would be Team names

    Each team would mark their compliance as Yes/No against Clause No.

    Expected Result: Columns H, I, J would be the team names. This should be populated automatically with Clause No's that are marked No.

    I was able to do this with a Pivot table. Maybe there is a better way of doing this.

    I have attached a sample file.

    Your help is much appreciated!
    Attached Files Attached Files
    Last edited by jebindavidson; 01-14-2022 at 07:37 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Populate cells based on content

    Use this:

    =IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW(B$2:B$20)/(B$2:B$20="No"),ROWS(H$2:H2))),"")

    copied across and down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    04-23-2013
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    54

    Re: Populate cells based on content

    Hello Glenn. Thanks for your help.

    Now it's my job to go learn what Aggregate and Index does. I've never used these functions in my life.

    If you would be so kind, could you please tell me how this formula works. I would be so grateful.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Populate cells based on content

    Thank fo rthe feedback. By way of explanation


    =IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW(B$2:B$20)/(B$2:B$20="No"),ROWS(H$2:H2))),"")

    Red. where this condition is met
    Orange. return the row number
    Green smallest to largest
    Cyan in ascending order 1,2,3, etc
    Blue return the corresponding value from this column
    Black return a blank instead of an error message when no more matches are found.

  5. #5
    Registered User
    Join Date
    04-23-2013
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    54

    Re: Populate cells based on content

    Thanks for taking the time to explain! You've been a great help.

    Cheers!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Populate cells based on content

    No problem...

+ 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. Populate rows on sheets based on a cell content
    By kc8jpk03 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-05-2016, 11:55 AM
  2. How to populate certain cells based on another cell content [VLOOKUP ]
    By exceleron in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-23-2015, 06:28 AM
  3. Macro to auto-populate cells based on content of other cells
    By BristolJGM in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2015, 07:47 PM
  4. Replies: 5
    Last Post: 07-07-2014, 11:52 AM
  5. Automatically copy cells content based on the content of another cell.
    By chrisbarlow1984 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2014, 11:13 AM
  6. Code to pull cells into a new workbook based on content of adjacent cells
    By Greed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2012, 10:05 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