+ Reply to Thread
Results 1 to 5 of 5

Formula to auto populate

  1. #1
    Registered User
    Join Date
    09-23-2014
    Location
    Dubai, UAE
    MS-Off Ver
    2013
    Posts
    81

    Post Formula to auto populate

    Hi team,

    Need help to produce a formula which is mentioned in the attached file.
    Attached Files Attached Files

  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 2406
    Posts
    44,662

    Re: Formula to auto populate

    In C8, an array formula, copied across and down:

    =IFERROR(INDEX(Data!H:H,SMALL(IF(Data!$B$3:$B$28=Summary!$A$8,ROW(Data!$B$3:$B$28)),ROWS(C$8:C8))),"")

    and iun B19, copied across.

    Similarly for the lower replicate set.

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    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

  3. #3
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Formula to auto populate

    Can also try below without array formula, and copy across the cells:

    C8=IFERROR(INDEX(Data!H$3:H$28,MATCH(LARGE(INDEX((Data!$B$3:$B$28=$A$8)/ROW(Data!$B$3:$B$28),0),IF(ROWS($A$8:$A8)>COUNTIF(Data!$B$3:$B$28,$A$8),-1,ROWS($A$8:$A8))),INDEX((Data!$B$3:$B$28=$A$8)/ROW(Data!$B$3:$B$28),0),0)),"")

    Caveat: if your source data are blank cells (e.g. ROUTE and ROUTE2) you will end up getting 0, quick workaround would be formatting your blank cells to TEXT and insert a SPACE


    _______________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  4. #4
    Registered User
    Join Date
    09-23-2014
    Location
    Dubai, UAE
    MS-Off Ver
    2013
    Posts
    81

    Re: Formula to auto populate

    Superb..!

    Thank you very much Glenn & Alvin.

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

    Re: Formula to auto populate

    Thanks for the rep. If you DO have blank cells that give zeros, can I suggest that you DO NOT follow Alvin's advice, but come back and ask again...

+ 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 to auto populate Calendar
    By kh2733 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-05-2017, 10:33 AM
  2. Simple Fix? Auto populate formula
    By Gappy in forum Excel General
    Replies: 9
    Last Post: 09-09-2015, 12:08 AM
  3. formula to auto populate
    By joesport5 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-27-2013, 03:31 PM
  4. Auto Populate a Column with Formula from Cell Above
    By btxp in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-29-2013, 06:12 PM
  5. Auto Populate Formula required
    By Gewzus in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-29-2012, 10:02 PM
  6. Replies: 3
    Last Post: 02-28-2012, 11:54 AM
  7. Array Formula to Auto-Populate Results
    By jdcsati in forum Excel General
    Replies: 5
    Last Post: 02-18-2012, 06:00 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