+ Reply to Thread
Results 1 to 11 of 11

Fetch EMP ID's & Count

  1. #1
    Registered User
    Join Date
    11-22-2015
    Location
    Mumbai
    MS-Off Ver
    2007
    Posts
    8

    Fetch EMP ID's & Count

    With Reference to the link - http://www.excelforum.com/excel-prog...ml#post4248090

    With the same line for the code provided by Vraag Below, I need the code which will give the pass output differently and failed output differently.

    Please note - In the result column, there can be different values as well like pass, fail, N/A, Not Eligible etc...

    I need count of EMPID in one column & wat are the EMP ID in other column for their respective result column
    Thanks Vraag for your code, that helped me too but i need the pass, failed, N/A out differently .

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kalavatiaai; 11-24-2015 at 09:47 AM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Fetch EMP ID's & Count

    Deleted....................
    Last edited by jindon; 11-24-2015 at 11:39 AM. Reason: Code tag added

  3. #3
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Fetch EMP ID's & Count

    Hello KalavatiAai,

    PLease use code tags... & then post your code in it

    Coming to the requirment the data is calculated in Output sheet on the basis of Input sheet column J as a whole..

    u want the output columns different on the basis of Result (Column J)..... me stuck on this...

    Please see the file.. do you need something like this? codings needs to be done.. as of now only the format is attached...
    Attached Files Attached Files
    Last edited by Parth007; 11-24-2015 at 07:28 AM.
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  4. #4
    Registered User
    Join Date
    11-22-2015
    Location
    Mumbai
    MS-Off Ver
    2007
    Posts
    8

    Re: Fetch EMP ID's & Count

    Hi Parth,
    Yes i need the macro which is in accordance to the file you have attached.
    Im new to VBA so im unable to find it on net.

    can anyone pls help me on this as this is bit urgent.
    it would be really greatfull and response from all ends will highly be appreciated.

    Than you all...

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Fetch EMP ID's & Count

    See the attached
    Please Login or Register  to view this content.
    Last edited by jindon; 11-24-2015 at 12:49 PM. Reason: Everything has been replaced due to cell format.

  6. #6
    Registered User
    Join Date
    11-22-2015
    Location
    Mumbai
    MS-Off Ver
    2007
    Posts
    8

    Re: Fetch EMP ID's & Count

    Thank you very much Jindon, i appreciate your effort.
    I tried copy pasting the code for Fail as well but unable to do it.
    can you please have a look at the below code, if the code for Pass and fail is correct or not.
    I need the "Wat are EMP ID's" and Count OF EMPID's for diferent different types of values in Result, the way you have done for "Pass"

    Moreover we are hardcoding the values here, is it possible to pick whatever the values it has and then it will be convenient for me.

    Please Login or Register  to view this content.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Fetch EMP ID's & Count

    Then I need to see your EXACT desired result.

  8. #8
    Registered User
    Join Date
    11-22-2015
    Location
    Mumbai
    MS-Off Ver
    2007
    Posts
    8

    Re: Fetch EMP ID's & Count

    Hi Jindon,

    Please find my sheet for the desired result in output tab for which I need the code.
    As per the output tab I need the result separately for each result value. The code you provided generates the result for only Pass. I want the result for Pass, Fail, NA, etc. In case in future if new result value is added in the input then the code should be capable to identify this new value and generate the outcome this new value as well.
    Note - The column F in input tab has repeated value.

    Thanks,
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Fetch EMP ID's & Count

    You should have posted the 2nd file in the first place...
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    11-22-2015
    Location
    Mumbai
    MS-Off Ver
    2007
    Posts
    8

    Re: Fetch EMP ID's & Count

    hello Jindon,
    Thank you very much for your quick help.
    This code really worked for my test file i also tried in my master file to incorporate this code. but not sure why this is failing.

    finally after giving a hard try the entire day, iam attaching the main file for your reference.
    can you please have a look at the file and incorporate the code as the attached excel.

    based on the column f (flmap), column j data and column B data should be obtained. Column F has same data is repeated multiple times and for this status and def is to be generated in different work sheet of same file.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    11-22-2015
    Location
    Mumbai
    MS-Off Ver
    2007
    Posts
    8

    Re: Fetch EMP ID's & Count

    Thank you very much Jindon... its actually worked as i was about to build... I m really very gratefull to you

+ 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] Fetch row ids from other sheet
    By MKettu in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-21-2014, 05:55 AM
  2. [SOLVED] Fetch variable from another sub?
    By kaptenstofil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-23-2014, 05:54 AM
  3. [SOLVED] Search and Fetch
    By roundco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-29-2014, 06:37 PM
  4. Fetch value from cell for VBA
    By The Phil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2013, 03:23 PM
  5. Fetch the record
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-31-2012, 06:26 AM
  6. to fetch value from corresponding cell
    By sivasarkar in forum Excel General
    Replies: 4
    Last Post: 06-05-2012, 08:58 AM
  7. fetch value of a cell, if its row contain a value > 0
    By creamecake in forum Excel General
    Replies: 14
    Last Post: 02-06-2012, 02:30 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