+ Reply to Thread
Results 1 to 6 of 6

How to match Row Name with Column Heading and display Column Value?

  1. #1
    Registered User
    Join Date
    08-05-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to match Row Name with Column Heading and display Column Value?

    Hi,

    I need help with writing a formula or a macro to compare the row name with the column header and displaying the appropriate column value.

    For ex:

    Capture.JPG

    In the above example, for each item in Column A, there is a rightful owner in Column B. However Column C:F displays the count of each item possessed by different owners.

    So Row 3 indicates that QW possess 2 units of Item 100 and RT possess 1 unit of Item 100. But rightful owner AB possess nothing.

    In order to find the number of items possessed by the rightful owner, I need a macro or a simple formula..

    Expected solution would look like this
    Capture1.JPG

    I can use the following formula
    =IF(B3=$C$2,C3,IF(B3=$D$2,D3,IF(B3=$E$2,E3,IF(B3=$F$2,F3,"Not found"))))
    but a simpler version will be much helpful..

  2. #2
    Forum Contributor
    Join Date
    11-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    159

    Re: How to match Row Name with Column Heading and display Column Value?

    HI Welcome to the Board!!!

    Paste this formula in G3 and drag drown
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor CheshireCat's Avatar
    Join Date
    10-11-2011
    Location
    Victoria, Canada
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    258

    Re: How to match Row Name with Column Heading and display Column Value?

    In cell G3 of your example, try:

    Please Login or Register  to view this content.
    copy/autofill down.
    Docendo discimus.

  4. #4
    Registered User
    Join Date
    08-05-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to match Row Name with Column Heading and display Column Value?

    thanks mmmarks and CheshireCat..both the formula's work

  5. #5
    Forum Contributor
    Join Date
    11-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    159

    Re: How to match Row Name with Column Heading and display Column Value?

    Quote Originally Posted by cezondz View Post
    thanks mmmarks and CheshireCat..both the formula's work
    Thanks for Feedback ..mark as Solved dont dont forget to clik on STAR

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to match Row Name with Column Heading and display Column Value?

    @ cezondz

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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