+ Reply to Thread
Results 1 to 3 of 3

Return cells in a row if specific column is populated

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    Allegany, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Return cells in a row if specific column is populated

    The master sheet lists sales people (A2:A7) with employee code, location, then "sale types" in columns E-J. In a different sheet, I need to return each incidence of sale, and return much of that same data as depicted in the Output sheet. I dont know how to have each row populate consecutively when information is present in a given column (sale type).
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-14-2013
    Location
    Allegany, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Return cells in a row if specific column is populated

    The original attached had an error in the sale types for what it should look like HELPBOOK2. Sorry
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Return cells in a row if specific column is populated

    find attached !

    Master sheet contains helper column.

    formula used here are array formula you need to confirm them by holding control and shift together and then hitting enter instead of just pressing enter.

    in L1 of master sheet give a name helper column
    in L copy paste below
    =COUNTIF($E$2:J2,"<>"&"") and drag down.

    in output sheet in a3 copy paste below and then hold control and shift together and then hit enter
    =INDEX(Master!A$2:A$7,MIN(IF(Master!$L$2:$L$7>=ROW(A1),ROW(Master!$L$2:$L$7)-1)))
    drag down and drag to right up to column D (up to locations Column)

    for type which is in column E (in E3 copy paste below and hold control and shift together then hit enter and drag down)
    =SUBSTITUTE(INDEX(Master!$A$1:$J$1,MID(TEXT(SMALL(IF(Master!$E$2:$J$7<>"",ROW($E$2:$J$7)*1000+COLUMN($E$2:$J$7)),ROW(A1)),"R000C000"),6,3)+0),"Type ","")

    for gross sales which is in column F (In F3 copy paste below and hold control and shift together and then hit enter and drag down)
    =INDIRECT("MASTER!"&TEXT(SMALL(IF(Master!$E$2:$J$7<>"",ROW($E$2:$J$7)*1000+COLUMN($E$2:$J$7)),ROW(A1)),"R000C000"),0)
    Attached Files Attached Files
    Last edited by hemesh; 04-11-2014 at 04:02 PM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

+ 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] Average of A if column B is blank and C is populated unless containing specific text
    By mattr86 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-15-2013, 01:12 AM
  2. [SOLVED] Return value from whichever of three cells is populated
    By johnmitch38 in forum Excel General
    Replies: 8
    Last Post: 09-14-2012, 07:51 AM
  3. Replies: 4
    Last Post: 09-06-2012, 09:26 AM
  4. Replies: 1
    Last Post: 06-03-2011, 05:33 AM
  5. Counting number of populated cells in a specific column
    By SHS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2009, 02:37 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