+ Reply to Thread
Results 1 to 23 of 23

Name as per type column

  1. #1
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Name as per type column

    Hi Guys,

    Please find the attached sheet, the formula which i am using doesnt show the 2nd criteria, i have highlighted my result,
    I remove duplicates from the shot column & then i run formula...
    My problem is 118_SQ001_Sc001 has 2 SET & 2 PROP but my formula shows only 1 that is too first one

    I need both answers , i.e. both the SET & PROP

    Note - I need my solution from column A,B &C

    Link of my previous post - http://www.excelforum.com/excel-form...ml#post4214768
    Attached Files Attached Files
    Last edited by sam1105; 10-23-2015 at 02:56 AM. Reason: Link attached
    You can add reputation(s) of those who helped

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Name as per type column

    I think I follow what you want...

    I created a helper column

    =A2&B2&C2

    and then made a unique list from the helper column(array entered)

    =IFERROR(INDEX($D$2:$D$596,MATCH(0,COUNTIF($J$1:J1,$D$2:$D$596),0)),"")

    I then used that in an INDEX-MATCH to return your results, dragging across and down:
    =INDEX(A$2:A$596,MATCH($J2,$D$2:$D$596,0))
    Last edited by Glenn Kennedy; 10-23-2015 at 03:55 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Name as per type column

    My www connection died! Here's the attachment
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name as per type column

    Is the attached example (No formula) the output expected?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Name as per type column

    Hii glen,

    please find attached sheet .. need solution like this.. i m srry for not explaining it properly
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Name as per type column

    I would have helped if you had shown that in the first place. This is a TOTALLY different question. You will need VBA for this. Is that OK?

  7. #7
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Name as per type column

    Yes...Glennn....i m okay with it...and i m really sorry as my manager askd me this now...hope u understand...

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name as per type column

    See attached

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

  9. #9
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Name as per type column

    Hi JohnTopley

    Its works great only 1 thing it is giving me a error after a press the button "Run time Error 13" Type Mismatch..

    Please find attached sheet
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name as per type column

    Row 415 has a "#N/A" error code in it so the macro fails.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name as per type column

    Attached has "Error handling"
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Name as per type column

    Thank you ..it works great....

  13. #13
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Name as per type column

    Hi JohnTopley,

    1problem is here 118_SQ001A_Sc001 shot is not in the list after running macro & 1 more thing is shot nos are repeating & i want duplicate to be removed in shot nos.i.e. ("E Column")

    Please help..
    Attached Files Attached Files

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name as per type column

    See attached: data sorted and cannot see duplicates (?)
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Name as per type column

    Hi JohnTopley,

    If you see Column A has total 596 shots, and if i remove duplicates (Data- Remove Duplicates) from it i should get total 121 shots, but E column it is 133 shots...

    Please see the highlighted part in the attachment
    Attached Files Attached Files

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name as per type column

    All duplicates are NOT removed: and as the file isn't sorted I don't check for duplicates as it was not stated as a requirement.

    See attached SORTED file.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Name as per type column

    I think i m not clear ..but it still doesnt removed duplicates from Column E..pls check it again...i have manually removed duplicated and pasted in column M.. this is correct result which should appear in Column E... i Hope i m clear now...
    Attached Files Attached Files

  18. #18
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name as per type column

    Sorry but there many duplicates in columns A to C and as I explained earlier: (1) the file needs to be sorted by A,B and C to find the duplicates (2) the macro does NOT check for duplicates,


    Remove all the duplicates and it will give the correct result.

  19. #19
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name as per type column

    Results with file sorted and check for duplicates.

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

  20. #20
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Name as per type column

    HI John,

    Sorry for delay response..the website was not opening because of some sucuri firewall backend error..please ignore the duplicates and can u pls also code in the attached sheet for "FX " part too as coding doesnt pull FX and rest everything is working grt...

    find the attached document and pls do the changes for only FX part in the coding...
    Thanks a lott....
    Attached Files Attached Files

  21. #21
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name as per type column

    See attached.
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Name as per type column

    Hi

    Thanks a lot for your hep & patience....my problem is solved now...and can u pls suggest some easy macro learning sites.. if you dont mind...Thank You again...

  23. #23
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name as per type column

    Look here for recommendations: I have an earlier John Walkenbach book and can certainly recommend him.


    HTML Code: 

+ 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. Replies: 1
    Last Post: 11-26-2014, 06:21 AM
  2. [SOLVED] SUM All Column per Row Based on Type of Column
    By allansy8 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-19-2014, 01:17 AM
  3. Column Cell Count with variable in column marker, Type mismatch
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2013, 11:39 AM
  4. How to type a name in one column and get an amount in the next
    By SkinnyKitty in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-26-2013, 06:38 PM
  5. Replies: 2
    Last Post: 12-14-2012, 11:45 PM
  6. Replies: 1
    Last Post: 11-10-2008, 01:59 PM
  7. datetime type column
    By Tal72 in forum Excel General
    Replies: 2
    Last Post: 09-25-2008, 04:20 PM

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