+ Reply to Thread
Results 1 to 8 of 8

How to get all the values in column A based on the value in column B

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    22

    How to get all the values in column A based on the value in column B

    Hello:

    I have a task to accomplish but not sure if it is possible in Excel

    In warehouse I work at stores many different products. Each product maybe located in different locations. All the products and their associated locations have been stored in an Excel file.

    I need to list the associated locations of each product.

    Attached Excel file is what the table looks like.


    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: How to get all the values in column A based on the value in column B

    Hi,

    I have posted a solution in the green table beneath your sample solution table.

    I hope this helps
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-17-2013
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: How to get all the values in column A based on the value in column B

    Many thanks except I don't follow the logic.

    When I try to decompose part of the solution in cell F13

    IF($B$2:$B$10=$E13,ROW($A$2:$A$10)-ROW($A$1))

    Isn't there is a missing Else part but there is no error in the updated Excel file.

    Please advise.


    Quote Originally Posted by ajryan88 View Post
    Hi,

    I have posted a solution in the green table beneath your sample solution table.

    I hope this helps

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: How to get all the values in column A based on the value in column B

    The Else argument is optional, and just returns a FALSE if omitted.

  5. #5
    Registered User
    Join Date
    10-17-2013
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: How to get all the values in column A based on the value in column B

    What are those { and }? If I click the cell, I can see the { and }. However, if I click the formula bar, I don't see those anymore. Also, if I copy the formula without { and }, it does not work in other cell. If I copy the cell and paste it somewhere else in the worksheet, it still work.

    Quote Originally Posted by ajryan88 View Post
    The Else argument is optional, and just returns a FALSE if omitted.

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: How to get all the values in column A based on the value in column B

    Ah yes, sorry I should have explained that a bit better.

    The curly braces indicate that the formula is an array formula. You do not type the braces in, they are entered automatically by Excel. To tell Excel that you want to enter an array formula, you use Ctrl + Shift + Enter instead of just Enter.

    I hope this explains things a little bit better

  7. #7
    Registered User
    Join Date
    10-17-2013
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: How to get all the values in column A based on the value in column B

    Many thanks:

    That was the reason when I copied/pasted your formula, it was not working.

    thanks again.


    Quote Originally Posted by ajryan88 View Post
    Ah yes, sorry I should have explained that a bit better.

    The curly braces indicate that the formula is an array formula. You do not type the braces in, they are entered automatically by Excel. To tell Excel that you want to enter an array formula, you use Ctrl + Shift + Enter instead of just Enter.

    I hope this explains things a little bit better

  8. #8
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: How to get all the values in column A based on the value in column B

    No problems

    Please don't forget to mark this thread as solved, and please click on the * next to my post to say thanks

+ 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. Replies: 2
    Last Post: 06-06-2013, 08:29 AM
  2. Replies: 1
    Last Post: 03-02-2013, 05:06 AM
  3. Replies: 4
    Last Post: 08-01-2012, 08:55 AM
  4. Replies: 23
    Last Post: 09-25-2009, 07:39 PM
  5. Replies: 1
    Last Post: 09-19-2009, 08:09 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