Results 1 to 3 of 3

Formula function by date

Threaded View

  1. #1
    Registered User
    Join Date
    03-08-2021
    Location
    greece
    MS-Off Ver
    2013
    Posts
    8

    Formula function by date

    Hello all, I need some help. In this test excel I have a formula to read odds color(Green and Red)

    Function CheckColor(range)
        If range.Interior.Color = RGB(256, 0, 0) Then
            CheckColor = "Red"
        ElseIf range.Interior.Color = RGB(0, 176, 80) Then
            CheckColor = "Green"
        Else
            CheckColor = "Neither"
        End If
    End Function
    I also find function to read the quantity of each day
    24 Feb is 3
    25 Feb is 1
    etc

    Now I want some more difficult function.

    For the 3 odds of 24 Feb (3.58 red , 1.58 red , 2.77 green)
    starting from 0

    -6 for each red

    (cell value-1)*0.97 for each green

    So I want 0 -6 -6 +(2.77-1)*0.97 = -10.28


    For 1 odds of 25 Feb (15.12 red)
    starting from 0
    0-6 = -6

    For 4 odds of 26 Feb (7.00 green , 1.80 red , 3.56 green , 2.78 green
    starting from 0
    0 +(7.00-1)*0.97 -6 +(3.56-1)* 0.97 +(2.78-1)*0.97 = 4.03

    etc

    I can imagine that I need =IF(A1:A18 ; "*"& 24 Feb &"*" ; ???????)
    Attached Files Attached Files
    Last edited by jeffreybrown; 04-21-2021 at 10:40 AM. Reason: Please use code tags when posting code!

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: 05-21-2014, 02:26 PM
  2. [SOLVED] Function/formula to compare and insert todays date or yesterdays date
    By TC922 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2013, 05:28 AM
  3. [SOLVED] Need help with date function/formula
    By snaffles in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2012, 10:28 AM
  4. Excel 2007 : Help with date formula/function
    By bhalm1 in forum Excel General
    Replies: 3
    Last Post: 12-31-2010, 09:19 AM
  5. [SOLVED] Date Function formula that will return the date of a specific week
    By Greg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2006, 12:10 PM
  6. [SOLVED] Date formula and if function
    By alane in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-27-2006, 09:11 PM
  7. Need help with a date function formula
    By KAA in forum Excel General
    Replies: 2
    Last Post: 08-29-2005, 12:05 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