+ Reply to Thread
Results 1 to 18 of 18

Complex Challenging VBA How do I start this ? small help "Condition based Cell values"

  1. #1
    Registered User
    Join Date
    04-12-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    12

    Question Complex Challenging VBA How do I start this ? small help "Condition based Cell values"

    I have attached this A EXCEL ...... Hope some Guru'S can help me out ...
    Looking forward for your reply ..
    Attached Files Attached Files

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    2) In Colum I -- x belongs to the group so the group should be marked all x (hope you get what the group is)
    3) In Colum J Since the group belong to some other group it should also be marked x
    Can you explain more about these rules? How can a group be identified? Is there some hierarchy of groups?
    Last edited by Tsjallie; 07-14-2017 at 03:43 AM.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Registered User
    Join Date
    04-12-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    12

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    Group are sepreted by empty row ...
    the 1st group has 4 items ..
    2nd has 9 items ..


    In the EXL u can see the rules how It should be @ the end ...
    Last edited by vivian4u; 07-14-2017 at 04:52 AM.

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

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    what is required in column K. You have written same as step2. But the results shown are different.

  5. #5
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    Ok, rules 1,2,4 and 5 are clear (I hope) and can be done with simple formulas.
    Still struggling with rule 3: "Since the group belong to some other group it should also be marked x"
    What makes a group belong to an other group?

  6. #6
    Registered User
    Join Date
    04-12-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    12

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    same as 2) It means again all should be marked as x

  7. #7
    Registered User
    Join Date
    04-12-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    12

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    For example (C43) in the group there is 410 and also in another group (C13) (Since there was no x in that group now it should have x) ... and again the group should be filled with x since it has one x ...


    Hope i have cleared something ..


    (It is pretty tricky)

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

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    Why K18,K19 & K20 are not having x.

  9. #9
    Registered User
    Join Date
    04-12-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    12

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    oooooops ... offcours they should .... sorry my fault ... Dont know how i missed it !

  10. #10
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    Not quite sure if I got it now, but this is my try.
    There are some differences though. Not sure if they come from the formulas or just typos.
    Added a helper column to identify the groups. Identifying them based on the empty would make it very complex.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    04-12-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    12

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    Thank you thats was great ,.. sorry was bit late to get back .. to U ,... but How do I create the group ??

  12. #12
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    but How do I create the group ?
    I assume you are referring to the column A. That's a helper column I added to have a unique identifier for the groups.
    You need that to make the formulas work properly. Identifying them based on the surrounding empty rows would (if even possible) be very complex and result in formulas beyond comprehension.
    I entered the identifiers manualy, but you could use a formula to assign them to the groups.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you enter this formula in cell A3 and then copy it all the way down, it will give you numeric identifiers which have the same effect as the character identifiers.

    Are the differences in the yellow marked cells correct or is there an error in the formulas?

  13. #13
    Registered User
    Join Date
    04-12-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    12

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    @Tsjallie,. Is it possible to change the formula by using variables , since I have different types of data ,..

  14. #14
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    Refresh my memory. What values in what formula would you like to replace with variables?

  15. #15
    Registered User
    Join Date
    04-12-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    12

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    yes ,.. because length of the coloum varies ,... some are short ... some are long ...

  16. #16
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    I really don't have a clue of what you're after.
    The only differences in length of columns (as far as I can see) are for the groups. These vary, but that's solved with the group id.

  17. #17
    Registered User
    Join Date
    04-12-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    12

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    I am working on it ... dont know exactly wat I want for my reserch ... !! will get back to u soon !! thanK u for Ur kind help Tsjallie..

  18. #18
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Complex Challenging VBA How do I start this ? small help "Condition based Cell value

    dont know exactly wat I want for my reserch
    Can you describe the problem you're facing.
    May be I can help finding a solution.

+ 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] Formulas to sum distinct values with condition "any" and "all"
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-30-2017, 10:40 PM
  2. Formuals to sum distinct values with condition "any" and "all"
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2017, 01:04 PM
  3. Formuals to sum distinct values with condition "any" and "all"
    By HeyInKy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-30-2017, 12:44 PM
  4. [SOLVED] Conditional Formatting highlight duplicate values IF cell doesn't start with "XX"
    By deneh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-16-2015, 04:44 AM
  5. Split cell values based on "," and "-" and format as shown below
    By Roop in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2012, 12:28 AM
  6. Replies: 1
    Last Post: 01-30-2006, 06:10 PM
  7. Displaying Multiple "IF" Condition Values Into One Specific Cell
    By BigFeat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2005, 08:12 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