+ Reply to Thread
Results 1 to 7 of 7

i need vba code to find result for g col from depends upon multiple col

  1. #1
    Forum Contributor
    Join Date
    06-10-2014
    Location
    CANADA
    MS-Off Ver
    2016
    Posts
    118

    i need vba code to find result for g col from depends upon multiple col

    Hi all

    need vba code.
    i need help to find result for G column depends upon 1st condition and 2nd condition.

    In column A:A where ever Africa and In column B:B where ever Felidae and Non_Felidae Result in column G:G = African Cat Family
    In column C:C Where ever find among list from list mammals sheet, Result in G

    find the attachment

    Regards
    lewis
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: i need vba code to find result for g col from depends upon multiple col

    You don't really need VBA. You can use a formula copied down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note: you seem to have crossed over columns in the description of the problem. And you have some trailing spaces that mess things up. AND you do not have any of the animals matching the Mammals list.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    06-10-2014
    Location
    CANADA
    MS-Off Ver
    2016
    Posts
    118

    Re: i need vba code to find result for g col from depends upon multiple col

    HI boss this work either for one condition only ,why

    Please Login or Register  to view this content.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: i need vba code to find result for g col from depends upon multiple col

    See the attachment.

    Note the comments in post #2.

    The trailing space is actually a non-breaking space so TRIM will not remove that.

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If that does not work, you will need to edit the data manually.
    Attached Files Attached Files

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: i need vba code to find result for g col from depends upon multiple col

    Is this resolved now?


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  6. #6
    Forum Contributor
    Join Date
    06-10-2014
    Location
    CANADA
    MS-Off Ver
    2016
    Posts
    118

    Re: i need vba code to find result for g col from depends upon multiple col

    Thanks brother!! its solved have a nice day

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: i need vba code to find result for g col from depends upon multiple col

    You're welcome.

+ 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. Need VBA code to find multiples depends upon column value add result in one column
    By johnlara in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2022, 08:31 AM
  2. Conditional formatting - result depends on value of two cells
    By osbertdebroilg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-29-2017, 03:31 PM
  3. excel formula depends upon 3 set of value result from set of range lookup
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2013, 09:06 PM
  4. Vba list up result in column depends upon date and code
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2013, 05:01 AM
  5. If condition for dates in range result depends upon changes of date
    By breadwinner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2013, 08:26 AM
  6. Replies: 12
    Last Post: 04-30-2008, 09:07 AM
  7. Embedding IF: depends on result..
    By nastech in forum Excel General
    Replies: 13
    Last Post: 07-05-2006, 05:15 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