+ Reply to Thread
Results 1 to 9 of 9

Finding the column and their values

Hybrid View

  1. #1
    Registered User
    Join Date
    04-05-2011
    Location
    A, A
    MS-Off Ver
    Excel 2003
    Posts
    28

    Finding the column and their values

    Hi,

    I have a sheet name "sheet2" in which Row No 1 contains the string and Row 2 contains the string value. And In the sheet3 answers are there. Now I have to do:-

    EG :- First It find the Gender into the sheet 3 and and if it finds then lookup the value of Row 2 into that column where Gender finds.


    I am attaching a file for your reference.
    Attached Files Attached Files
    Last edited by YogeshGoel26; 12-20-2011 at 02:12 AM.

  2. #2
    Registered User
    Join Date
    04-05-2011
    Location
    A, A
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Problem in VBA Coding for finding the column and their values

    Please help me its urgent

  3. #3
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,309

    Re: Problem in VBA Coding for finding the column and their values

    I'm finding it hard to understand exactly what your results might be. Can you post a before and after worksheet?

  4. #4
    Registered User
    Join Date
    04-05-2011
    Location
    A, A
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Finding the column and their values

    Please find the attached file. in whcih i put the answer which i need.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-25-2009
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Finding the column and their values

    It is too hard to understand, what is your requirement and what logic you are applying for getting it?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Finding the column and their values

    I don't understand the problem at all.

    Is row 2 of sheet2 the desired result? What logic did you apply in generating it?
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Finding the column and their values

    Hello Yogesh,

    Are you looking to count occurrences in each category? Gender, Age, office. If so use this in B3, copy across.

    =COUNTIF(INDEX(Sheet3!$A:$C,0,MATCH(B$1,Sheet3!$A$1:$C$1,0)),B$2)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  8. #8
    Registered User
    Join Date
    04-05-2011
    Location
    A, A
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Finding the column and their values

    Can you give me the coding in Macro.

  9. #9
    Registered User
    Join Date
    04-05-2011
    Location
    A, A
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Finding the column and their values

    Hey can anyone provide me macro coding of the above questions.

+ 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