+ Reply to Thread
Results 1 to 8 of 8

VBA macro code need for extracting non duplicate values ?

  1. #1
    Registered User
    Join Date
    06-07-2021
    Location
    india
    MS-Off Ver
    2011
    Posts
    39

    VBA macro code need for extracting non duplicate values ?

    Hi All

    I need the vba macro code for extracting non duplicate values with below conditions


    Column D have fixed values,
    The values in D1 have to check with B1 and C1
    the extracted non duplicate value should copy to F1
    same as D All rows.
    Image and excel attached for reference.test2.PNG
    in that excel have already different function macro code adding the above condition is advantage
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: VBA macro code need for extracting non duplicate values ?

    Macro code
    Please Login or Register  to view this content.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    06-07-2021
    Location
    india
    MS-Off Ver
    2011
    Posts
    39

    Re: VBA macro code need for extracting non duplicate values ?

    the above code working fine , I need one more help , let me ask you ?

  4. #4
    Registered User
    Join Date
    06-07-2021
    Location
    india
    MS-Off Ver
    2011
    Posts
    39

    Re: VBA macro code need for extracting non duplicate values ?

    Hi I need vba , hep with inserting row with prefix value with below functions

    excel sheet attached or reference.Attachment 735721

    I have excel with sheet1
    Sheet1 have some value in column A & B
    wants output in-column C (Row 1 to 6) print some text mentioned in excel redcolour
    Row 7 value comes from Sheet1 A1 with prefix "pick"
    Row 8 value comes form sheet1 B1 with prefix "pick"
    row 9 value comes from sheet1 B1 with prefix "prepopup"
    row 10 print pop Next
    Row 11 value comes from Sheet1 A2 with prefix "pick"
    Row 12 value comes form sheet1 B2 with prefix "pick"
    row 13 value comes from sheet1 B2 with prefix "prepopup"
    row 10 print pop Next

    its function should repeat entire column A &B row count.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: VBA macro code need for extracting non duplicate values ?

    Attachment is not opening. Pl attach file once again. Pl read yellow banner on top.

  6. #6
    Registered User
    Join Date
    06-07-2021
    Location
    india
    MS-Off Ver
    2011
    Posts
    39

    Re: VBA macro code need for extracting non duplicate values ?

    Hi

    Excel file attached , information in sheet2 please do he needful.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hi, try this !


    Quote Originally Posted by yugeshkumar View Post
    the extracted non duplicate value should copy to F1
    Hi, easy with Excel basics like any Excel beginner operating manually so without looping :

    PHP Code: 
    Sub Demo1()
        
    With [A1].CurrentRegion.Columns(6)
            .
    Value2 Evaluate(Replace("IF(C1:C#=D1:D#,B1:B#,C1:C#)""#", .Rows.Count))
        
    End With
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: VBA macro code need for extracting non duplicate values ?

    Where the output is required. You have told column C. Column C is already having data.
    You have already having a macro to write data in column G. Pl clarify.
    Manually make some entries in the sheet and upload file.
    Last edited by kvsrinivasamurthy; 06-08-2021 at 11:29 AM.

+ 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. combine duplicate rows and sum the values with vba code(Help)
    By ELJEFE187 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 12-18-2020, 12:25 AM
  2. Need Macro Code For Extracting Data From Just Dial [website]
    By jignesh.doshi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2019, 01:04 AM
  3. Extracting duplicate values into a list
    By msche09 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-10-2017, 12:30 AM
  4. Replies: 20
    Last Post: 11-27-2014, 02:37 AM
  5. [SOLVED] Macro that merges duplicate rows based on unique values - Need to edit current code
    By niya429 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2014, 02:57 PM
  6. Help with re-working macro code to 'throw out' duplicate values.
    By pwyller in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2012, 01:30 PM
  7. Replies: 2
    Last Post: 10-19-2010, 01:59 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