+ Reply to Thread
Results 1 to 3 of 3

Macro countif in 1st sheet and Vlookup in 2nd sheet result should be last row of each PN

  1. #1
    Registered User
    Join Date
    08-01-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    7

    Post Macro countif in 1st sheet and Vlookup in 2nd sheet result should be last row of each PN

    Hi friends,

    I am trying to create set of macro functions for my work.

    part of macro i need countif function in sheet 1

    sheet 1

    A column E Column
    Part Number Countif
    N8081159 5
    N8081159 5
    N8081159 5
    N8081159 5
    N8081159 5
    N2080649 4
    N2080649 4
    N2080649 4
    N2080649 4
    G3070199 3
    G3070199 3
    G3070199 3
    52119612 2
    52119612 2
    0339350 1
    0.015.3550 4
    0.015.3550 4
    0.015.3550 4
    0.015.3550 4


    in sheet 2 same part numbers with different count
    but i need sheet 1 count in last row of each part number in sheet 2 with vlookup...

    Sheet 2

    A column E column
    Part Number vlookup with sheet1
    N8081159
    N8081159
    N8081159 5
    N2080649
    N2080649 4
    G3070199
    G3070199 3
    52119612 2
    0339350
    0339350
    0339350 1
    0.015.3550
    0.015.3550 4


    Part Numbers are in sorted so it will be ordered set.

    i hope you can understand.
    please provide solution
    Last edited by Dharmadme; 03-19-2014 at 11:38 AM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro countif in 1st sheet and Vlookup in 2nd sheet result should be last row of each

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-01-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Macro countif in 1st sheet and Vlookup in 2nd sheet result should be last row of each

    Hi Jhon,

    Thanks for your quick response.


    Countif is works well. for vlookup in sheet 2 is populating value in all cells. But i need to populate value in last row of each part number.
    Please refer below

    Sheet 2



    A column E column
    Part Number vlookup with sheet1
    G3070199
    G3070199 3
    52119612 2
    N8081159
    N8081159
    N8081159 5
    N2080649
    N2080649 4
    0339350
    0339350
    0339350 1
    0.015.3550
    0.015.3550 4





    thanks in advance
    Last edited by Dharmadme; 03-19-2014 at 02:39 PM.

+ 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] Locating a cell in sheet 2, based on 2 variables in sheet 1. Result into sheet 1.
    By Gezza24 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-05-2013, 12:50 AM
  2. Vlookup value and countif for 5 sheet combain
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2013, 08:46 AM
  3. Replies: 3
    Last Post: 04-15-2010, 08:36 PM
  4. macro to copy result to another sheet in next row available
    By zaasrvr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2007, 05:08 PM
  5. vlookup and filename returning same result on each sheet.
    By RogueSwan in forum Excel General
    Replies: 3
    Last Post: 03-22-2005, 07:06 PM

Tags for this Thread

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