Consulting

Results 1 to 7 of 7

Thread: Multiple If statements with multiple date range

  1. #1

    Multiple If statements with multiple date range

    Trying to combine the following if statements into one so that the letter corresponding to the date range will display in the cell. Any suggestions?

    =IF(OR(TODAY()>=E4,TODAY()<=F4),"E")
    =IF(OR(TODAY()>=F4,TODAY()<=G4),"F")
    =IF(OR(TODAY()>=G4,TODAY()<=H4),"G")
    =IF(OR(TODAY()>=H4,TODAY()<=I4),"H")

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Brte force

    =IF(OR(TODAY()>=E4,TODAY()<=F4),"E",IF(OR(TODAY()>=F4,TODAY()<=G4),"F",IF(O R(TODAY()>=G4,TODAY()<=H4),"G",IF(OR(TODAY()>=H4,TODAY()<=I4),"H",""))))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3

    thanks!

    that worked, thank you! Is there a way though, to make it so the letter for the most current date appears?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Can you explain that a bit more, perhaps with an example?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5

    attachment

    I have attached the file. I am new at this, so let me know if this isnt what you wanted. Thanks again.

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try

    =INDEX(D1:M1,1,MATCH(TODAY(),D2:M2,1))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    that worked, thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •