+ Reply to Thread
Results 1 to 9 of 9

need formula to get unique values through lookup from adjacent column extent range

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    need formula to get unique values through lookup from adjacent column extent range

    Dear expert

    I have list of Quarter and month. under Quarter there are multiple months nos like 1,2,3,5,12,24,36...etc so if pick Q1-13 I want list out only unique values of adjacent column of month

    for example if Q1-15 month 1,3,12,24,36 coming 12 times in i want list out one time only.

    find the attachment raw data is in mis sheet if possible work in vba help me out.
    Attached Files Attached Files
    Last edited by breadwinner; 08-05-2016 at 03:17 AM. Reason: attachment

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: need formula to get unique values through lookup from adjacent column extent range

    Code on Sheets "DBD" :
    Please Login or Register  to view this content.
    Code on Module1 :
    Please Login or Register  to view this content.
    Attached Files Attached Files
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: need formula to get unique values through lookup from adjacent column extent range

    An alternative.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: need formula to get unique values through lookup from adjacent column extent range

    Thanks lot sir It works 100% sorry for annoying you i want one more requirement if possible help me out

    fill the formula in range where ever header value
    start cell F4 till end of month no f4=SUMIFS(MIS!$D:$D,MIS!$A:$A,$E$2,MIS!$B:$B,F$3,MIS!$C:$C,$E4)

    find the attachment
    Attached Files Attached Files

  5. #5
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: need formula to get unique values through lookup from adjacent column extent range

    You are welcome.
    Please add the red line to existing code :

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: need formula to get unique values through lookup from adjacent column extent range

    Wow amazing it works sorry sir this is last requirement i just tried to add grand total of summary range from your code is it right
    .Offset(1).Resize(.Column.Count - 1).Formula = "=SUM(F4:J4)" Please help on one line code sir thanks alot
    Attached Files Attached Files

  7. #7
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: need formula to get unique values through lookup from adjacent column extent range

    This should do :

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: need formula to get unique values through lookup from adjacent column extent range

    Got it This Line makes beauty of table .Resize(, .Columns.Count + 1).EntireColumn.AutoFit. Thanks alot sir hats off to your brilliant code. Thread solved by Karedog
    Last edited by breadwinner; 08-08-2016 at 02:17 AM. Reason: karedog

  9. #9
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: need formula to get unique values through lookup from adjacent column extent range

    You are welcome. Thanks for marking the thread as solved.


    Regards

+ 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] Look for duplicated & unique values in adjacent column. Perform math on result. . .
    By PeteABC123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2013, 12:04 PM
  2. [SOLVED] Count Unique Values in a Column that are not in adjacent Column
    By sskgintl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-15-2013, 03:18 PM
  3. Replies: 1
    Last Post: 02-18-2013, 01:46 AM
  4. Average range of cells in column if values in adjacent column are equal
    By RyNye in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2012, 10:12 AM
  5. Match values in a range with another range and copy the adjacent column
    By xelmac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2012, 01:42 PM
  6. Pull unique values based on adjacent column
    By freud1 in forum Excel General
    Replies: 9
    Last Post: 07-02-2012, 11:36 AM
  7. Replies: 3
    Last Post: 03-17-2012, 11:32 PM
  8. Lookup formula question:adjacent column
    By waternut in forum Excel General
    Replies: 4
    Last Post: 10-01-2009, 09:15 AM

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