+ Reply to Thread
Results 1 to 8 of 8

Nice plant or not formula

  1. #1
    Registered User
    Join Date
    09-04-2022
    Location
    Europe
    MS-Off Ver
    2019
    Posts
    3

    Nice plant or not formula

    I am looking for a formula that can do the following:

    I am interested in nature and I like to collect plants. Each plant that I have is eiter labeled "nice" or "not nice" and I also give each plant a number.
    If the plant is nice it equals 1 and if the plant is not nice it equals 0

    I have one excel list that looks similar to the following:
    Plant identification number Nice or not nice
    128 (cell A2) 1 (cell B2)
    298 (cell A3) 0 (cell B3)
    239 (cell A4) 1 (cell B4)
    412 (cell A5) 0 (cell B5)

    Further, I also have a second list which contains the plant identification number and other details of the plant.

    How can I make a formula that gives the plant identification number in the second list a blue color if the plant is nice in the first list and no color if the plant is not labeled as nice in the first list?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,448

    Re: Nice plant or not formula

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  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,190

    Re: Nice plant or not formula

    a bit light on detail!!

    Use this as the conditional formatting formula:

    =VLOOKUP(M2,A:B,2,FALSE)=1

    Applied to N2:N15
    Attached Files Attached Files
    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

  4. #4
    Registered User
    Join Date
    09-04-2022
    Location
    Europe
    MS-Off Ver
    2019
    Posts
    3
    Thank you very much for your input.  Do you guys have some other solutions as well?
    Last edited by AliGW; 09-05-2022 at 11:26 AM. Reason: Please DON'T quote unnecessarily!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,448

    Re: Nice plant or not formula

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

  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,190

    Re: Nice plant or not formula

    In what way dows my suggestion NOT do what you want?

  7. #7
    Registered User
    Join Date
    09-04-2022
    Location
    Europe
    MS-Off Ver
    2019
    Posts
    3

    Re: Nice plant or not formula

    Thank you for the workput input. The solution works in the workbook that is attached over, however, it does not work in the workbook that I tried to make myself. Why does it not work?
    Attached Files Attached Files

  8. #8
    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,190

    Re: Nice plant or not formula

    Well... for a start you did not apply the formula anywhere... and defintely not as a conditional format.

    I modified the formula slightly, to suit the ranges that YOU want in your sample:

    =VLOOKUP($G5,$A:$B,2,FALSE)=1
    Attached Files Attached Files

+ 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] Repeat the Plant as per Products
    By Rajkumar_h in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-18-2017, 09:36 AM
  2. creating a plant movement register any ideas or templates
    By BrianClancy in forum Excel General
    Replies: 4
    Last Post: 11-29-2015, 10:46 AM
  3. Auto-Updating Calendar for Plant Growth
    By vhdblood in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-12-2014, 05:10 PM
  4. Hey folks! Power plant operator here!
    By ExcelRO in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-24-2012, 05:10 AM
  5. Replies: 3
    Last Post: 07-02-2012, 06:05 AM
  6. Excel VLOOKUP AVG function? Plant Metrics
    By controlfreak in forum Excel General
    Replies: 4
    Last Post: 05-25-2009, 11:23 AM
  7. Counting Dates-Is there a nice easy formula to do this?
    By Hodged in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-17-2007, 08:25 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