+ Reply to Thread
Results 1 to 9 of 9

Place values into desired results column based using Status heading in column E

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Place values into desired results column based using Status heading in column E

    Looking for formula to place values into N2:N42 using Sales City & YR & Name (column E) and Status Heading in column F as the basis for placing values. In column F (Status), we have two values, "Nope" and "Yep". We will use Yep (column F) as our main focus to place the values in column N2:N42.

    In our sample file, Yep is in F10:F10, values in G10:M13 will be considered and placed in N2:N42 using Sales City & YR & Name (column E) to match each value in G10:M13 for placement in N2:N42.

    Example 1: 1999 - 2806 - Ben, Box G. - Cat Duck is in G12. We will then check Sales City & YR & Name (column E) to find where 1999 - 2806 - Ben, Box G. - Cat Duck is located. It is in E7 and the formula will place G12 value 1999 - 2806 - Ben, Box G. - Cat Duck in N7.

    Example 2: 1999 - 2806 - Kevin, Spice A. - Cat Duck is in G13. We will then check Sales City & YR & Name (column E) to find where 1999 - 2806 - Kevin, Spice A. - Cat Duck is located. It is in E9 and the formula will place G13 value 1999

    Thanks.
    Last edited by bjnockle; 03-29-2020 at 11:33 AM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Place values into desired results column based using Status heading in column E

    can you explain a bit further , I dont quite understand - you have a red fill for the "YEP", but nothing in M10 - M13
    ROW 10- 13

    Taking the first example
    M3
    1999 - 5535 - Ben, Box G. - 4Kor
    Why is that a required output ? in M3
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Place values into desired results column based using Status heading in column E

    etaf: 1999 - 5535 - Ben, Box G. - 4Kor s a required output in M3 because we have to trace 1999 - 5535 - Ben, Box G. - 4Kor to where it occur in column E using Sales ID (column A), Sales City (column B), Sales YR (Column C), Last name and first (column D). For 1999 - 5535 - Ben, Box G. - 4Kor, 1999 is in C2, 5535 is in A2, Ben, Box G. in D2 and 4kor in column B. Column E is the concatenated and that is where you want to look to match each "Yep" values for our desired output.

    can you explain a bit further , I don't quite understand - you have a red fill for the "YEP", but nothing in M10 - M13. Used the red fill to highlight the main requirement driver for the formula setup. For this example, Sales ID 4651 from A10:A13 has "Yep" and others Nope. This means values in G10:M13 will be placed in column N2:N42. For this sample, G10:M11 has no values, thus, the formula will not pickup anything here. If G10:M11 were to have values, the formula will be setup to place them in their respective row in N2:N42. For this sample, we only have values for "Yep" in G12:M12 and G13:I13.

    ROW 10- 13

    See attached sample file. Thanks.
    Last edited by bjnockle; 03-29-2020 at 10:33 AM.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Place values into desired results column based using Status heading in column E

    sorry, still not sure i follow, hopefully someone else will be able to answer

  5. #5
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Place values into desired results column based using Status heading in column E

    etaf: Column E (Sales City & YR & Name) is to be used to match the values in G12 to M13.

    Example 1: 1999 - 2806 - Ben, Box G. - Cat Duck is in G12. We will then check Sales City & YR & Name (column E) to find where 1999 - 2806 - Ben, Box G. - Cat Duck is located. It is in E7 and the formula will place G12 value 1999 - 2806 - Ben, Box G. - Cat Duck in N7.

    Example 2: 1999 - 2806 - Kevin, Spice A. - Cat Duck is in G13. We will then check Sales City & YR & Name (column E) to find where 1999 - 2806 - Kevin, Spice A. - Cat Duck is located. It is in E9 and the formula will place G13 value 1999 - 2806 - Ben, Box G. - Cat Duck in N9. Hope this help clear things up. Thanks.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Place values into desired results column based using Status heading in column E

    Please try at M2
    =IF(SUMPRODUCT(COUNTIFS(OFFSET($F$2:$F$42,,COLUMN(F$1:L$1)-COLUMN(F1)),D2,$E$2:$E$42,"Yep")),D2,"")

  7. #7
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Place values into desired results column based using Status heading in column E

    Bo_Ry: Excellent! Is there a non-array formula (without CTRL + ALT + ENTER) for the one you proposed. My original file has over 50,000 rows and an array formula will certainly slow down the file.

    Thanks.

  8. #8
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Place values into desired results column based using Status heading in column E

    bjnockle - OFFSET is more danger then array in your case and workbook will hang every changing even it is done in the other open workbook.
    By the way non array formula here
    Please Login or Register  to view this content.
    but it will work slowly
    it can be improved
    Please Login or Register  to view this content.

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Place values into desired results column based using Status heading in column E

    For 50,000 row, better use helper column

    N2 =F2&G2&H2&I2&J2&K2&L2

    O2 =IF(COUNTIFS($E$2:$E$42,"Yep",$N$2:$N$42,"*"&D2&"*"),D2,"")


    FYI. No need Ctrl+Shift+Enter doesn't mean it's not Array formula.
    Just because of some function eg; Sumproduct, Lookup, Index, frequency can handle array calculation without the need of Ctrl+Shift+Enter.
    Last edited by Bo_Ry; 03-29-2020 at 01:08 PM.

+ 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. Place values into desired results column based on year & names
    By bjnockle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2020, 05:29 AM
  2. Macro to place data in correct cell according to date and column heading
    By toshlad in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2018, 01:24 PM
  3. Check a column for >0 then put results to a desired cell location
    By nicksenior in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-02-2014, 11:18 AM
  4. Replies: 2
    Last Post: 05-16-2014, 02:07 AM
  5. Calculate standard deviation for column based on column heading
    By mattadler22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2013, 04:25 PM
  6. Adding Column values based on Column Heading
    By sjhanson in forum Excel General
    Replies: 1
    Last Post: 11-17-2011, 02:58 PM
  7. Lookup multiple values in same column with same column heading
    By kcasey1318 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2010, 05:13 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