Results 1 to 3 of 3

Macro to compare the data between 2 files and generate the count

Threaded View

  1. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Macro to compare the data between 2 files and generate the count

    Hello Manish, The same can be achieved with formula solution also take a look
    in I2 copy paste below
    =IF(H2="","",COUNTIF($B$2:$B$8,H2))

    in J2 copy paste below
    =IF(I2="","",COUNTIF([Sample2.xlsx]Sheet1!$B$2:$B$6,H2))

    *change the range criteria according to your actual data

    in K2 copy paste below then hold control and shift together and hit enter and release all three keys
    =IF(H2="","",MIN(IF(I2:J2>0,I2:J2)))

    drag all the formulas down.

    select I2 to K8 go to conditional formatting ---> select new rule--> add a formula---> type =len($K2)>0
    in format select yellow color.
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to generate auto daily files with todays Birthday
    By dingdang in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2013, 11:34 PM
  2. Macro to generate list of files in a hard drive with hyperlinks
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2012, 04:13 PM
  3. Macro to generate PDF's instead generates Excel files
    By ShamusVW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2010, 01:01 PM
  4. vba script to generate files based on an data from an Excel sheet
    By bananas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-30-2007, 03:00 PM
  5. [SOLVED] Compare worksheets and generate list of missing data?
    By Minuette in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-03-2005, 09:45 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