+ Reply to Thread
Results 1 to 16 of 16

how to get if formula based on cell color

  1. #1
    Registered User
    Join Date
    12-06-2022
    Location
    toronto, canada
    MS-Off Ver
    office 365
    Posts
    13

    how to get if formula based on cell color

    not sure it this is possible in excel if not VBA would be good too Sample book #3.xlsxSample book #3.xlsx

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: how to get if formula based on cell color

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

  3. #3
    Registered User
    Join Date
    12-06-2022
    Location
    toronto, canada
    MS-Off Ver
    office 365
    Posts
    13

    Re: how to get if formula based on cell color

    i see that works however i have sheets that will turn green with no "yes/no"
    Example attachedBook sample 1.xlsx

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: how to get if formula based on cell color

    That makes no sense to me, can you please explain exactly why a row should be yes or no?

  5. #5
    Registered User
    Join Date
    12-06-2022
    Location
    toronto, canada
    MS-Off Ver
    office 365
    Posts
    13

    Re: how to get if formula based on cell color

    i want it to be based on column K, O, R and U! if there is a pay date in those columns OR the total to be paid is 0 then the cell will turn green. so what i would like is column V to return "yes" if K,O,R and U are green

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: how to get if formula based on cell color

    Do you mean that if col T is 0 it should be Yes, otherwise No?

  7. #7
    Registered User
    Join Date
    12-06-2022
    Location
    toronto, canada
    MS-Off Ver
    office 365
    Posts
    13

    Re: how to get if formula based on cell color

    no not exactly, if col T is 0, U will turn green (conditional formatting)

    i want it so that if K,O,R,U [4 colunms] are all green then yes, otherwise no
    So if one of those colunms is not green "No"

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: how to get if formula based on cell color

    A formula cannot see colour, but maybe this is what you want
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    12-06-2022
    Location
    toronto, canada
    MS-Off Ver
    office 365
    Posts
    13

    Re: how to get if formula based on cell color

    can VBA detect color?

    Its close but not exactly what im looking for

    the easiest way to explain what im looking for is =IF(K,O,R,U=Green, "yes","No")

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: how to get if formula based on cell color

    Yes VBA can detect colour, but if you can clearly explain EXACTLY what should happen you can use a formula.

  11. #11
    Registered User
    Join Date
    12-06-2022
    Location
    toronto, canada
    MS-Off Ver
    office 365
    Posts
    13

    Re: how to get if formula based on cell color

    Ok let me try to give the most details desc i can:

    These are bills to be paid, that have multiple payees aka a portion for soft, master, explo and lending

    Ive put the total of the bills in G, From G the portions are calculated accordingly

    After the portion total col ive put pay date (L,O,R,U):

    Col L,O and R have conditional formatting thats makes cell green if there is a number in the cell (DATE)
    Col U has conditional formatting that makes the cell green if there is a number in the cell OR the amt in T = 0

    Col V should show "yes" if L,O,R have a date and U has a date or T=0

    V would show "no" If there is no date in even 1 of these cols,, unless the value of T =0 (which would make the U col green)

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: how to get if formula based on cell color

    Isn't that what the formula I suggested does?
    If not where does it fail?

  13. #13
    Registered User
    Join Date
    12-06-2022
    Location
    toronto, canada
    MS-Off Ver
    office 365
    Posts
    13

    Re: how to get if formula based on cell color

    when the T=0, but L,O,R has no date it still shows yes

  14. #14
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: how to get if formula based on cell color

    Ok, how about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    12-06-2022
    Location
    toronto, canada
    MS-Off Ver
    office 365
    Posts
    13

    Re: how to get if formula based on cell color

    this works brilliantly! thank you

  16. #16
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: how to get if formula based on cell color

    Glad to help & thanks for the feedback.

+ 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: 2
    Last Post: 10-11-2021, 08:58 AM
  2. IF formula based on cell color
    By mathematix in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-15-2021, 06:15 AM
  3. IF formula based on cell color
    By mathematix in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-15-2021, 06:11 AM
  4. [SOLVED] Conditional Formatting formula to color one cell based on a date range in another cell
    By katiedee1625 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-27-2018, 08:52 AM
  5. Change cell format (cell color+font color) based on color of another cell
    By Dedaluss in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2017, 03:27 AM
  6. Formula based on cell color
    By kimmycoop910 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-21-2016, 02:14 PM
  7. Set Cell Color based on a formula
    By alewson in forum Excel General
    Replies: 5
    Last Post: 08-18-2015, 05:24 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