+ Reply to Thread
Results 1 to 15 of 15

Extract values (row values and column values) with formula

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

    Extract values (row values and column values) with formula

    Have raw data in A4:F11, and looking for a formula to extract values in Row D, E, F,......if the condition I select from the drop down option (A14) is met.

    For example, if A14 = Acura, would like the formula to extract the values in Row D4, E4 and F4 and transpose it into a column value (A17, A18, A19, and so on. The formula should also extract column values in B5:B11 and transpose the values across B16:D16 if dropdown criteria is met.

    See attached sample file. Outcome is GREEN color


    Thanks
    Attached Files Attached Files
    Last edited by bjnockle; 08-17-2014 at 02:14 AM.

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

    Re: Extract values (row values and column values) with formula

    I think the way you are trying to extract values is wrong. You have shown the desired output for Acura, that's ok, it can be extracted as shown in the example but how do you expect the desired output for All [Acura,Lexus]. Would you upload the workbook showing the desired output for All [Acura,Lexus]?
    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.

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

    Re: Extract values (row values and column values) with formula

    sktneer: Thanks for the observation sktneer. All [Acura,Lexus] option is excluded from the data extraction. I am uploading the revised workbook to reflect your observation.

    Thanks.

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

    Re: Extract values (row values and column values) with formula

    Try this...

    In B17
    Please Login or Register  to view this content.
    and then copy across and down.

    Is this what you are trying to achieve?
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Extract values (row values and column values) with formula

    Something like this?
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

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

    Re: Extract values (row values and column values) with formula

    sktneer: I would like the formula to automatically extract the values (month e.g Jan, Feb) from D4:F4 into A17 down. Also have formula extract B5:B11 values and have it in B16:E16 if dropdown condition is met.

    Thanks.

  7. #7
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Extract values (row values and column values) with formula

    Like this? There are two different ways of handling the All option shown.
    Attached Files Attached Files

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

    Re: Extract values (row values and column values) with formula

    Are you not getting the output as same as you showed in your sample sheet as desired output? I don't understand that what you are asking for?

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

    Re: Extract values (row values and column values) with formula

    sktneer: Yes, the formula you supplied gave the correct output in B17:D19. However, there is no formula for A17 to drag down to extract the month values in D4:H4. Jacc formula for A17 (and drag down) is working =OFFSET($D$4,0,ROWS($A$17:A17)-1); however, need a formula for B16 to be dragged across.

    Thanks

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

    Re: Extract values (row values and column values) with formula

    Jacc: The OFFSET formula you provided for A17 down works well. Also looking for a formula for B16 across.

    Thanks.

  11. #11
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Extract values (row values and column values) with formula

    Are these values expected to change much? Are they very different in your real application from what is shown in your sample workbook?
    The reason that I'm asking is that the formula for figuring out all the unique values (OK, Good, Fair, Excellent) is a bit complex and it brings up the values in order of appearance rather than in the order of their perceived value.
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Extract values (row values and column values) with formula

    With an pivot table.

    See the attached file.

    I used the file of Jacc for that (thanks for that).
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: Extract values (row values and column values) with formula

    Please find the attached sheet to see if this is what you are trying to achieve?
    Attached Files Attached Files

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

    Re: Extract values (row values and column values) with formula

    sktneer and Jacc: Both solutions works, but it would be nice if the formula only picks the Product Rating for Acura (B16=Ok, C16=Good and D16=Fair) and ignore the rating for Lexus. If Lexus is selected from A14, it should populate B16:E16 as B16= Excellent C16= Good D16=Fair and E16=Ok.

    Thanks

  15. #15
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Extract values (row values and column values) with formula

    What about the pivot table?

    See the attached file.

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

    Re: Extract values (row values and column values) with formula

    oeldere: looking for a formula to accomplish this instead of Pivot Table. Thanks

  17. #17
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract values (row values and column values) with formula

    Please see attached file with self-adjusting ratings

    Did this work for you?
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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] A Conditional formula that adds values in column but ignores other values
    By Damo666 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-20-2014, 12:57 PM
  2. Replies: 2
    Last Post: 09-06-2013, 03:15 PM
  3. Replies: 5
    Last Post: 04-12-2011, 12:59 PM
  4. Macro Loop to Extract Specific Values and Min/Max Values From Column/Rows Range
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-19-2010, 09:19 AM
  5. assigning date entries to week values and month values to sum column C-N values C-
    By the accountant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2010, 09:52 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