Closed Thread
Results 1 to 6 of 6

harder than a simple IF statement

  1. #1
    Registered User
    Join Date
    04-06-2015
    Location
    Wilmington, DE
    MS-Off Ver
    2010
    Posts
    4

    harder than a simple IF statement

    I am trying to work out the following problem where:

    Cell A1 = Date
    Column B= Event Name
    Column C= Start Date
    Column D = End date
    Cell E1 = answer

    I am trying to write a formula without macros where the Date in cell A1 can be found within the range of column C and Column D and return the corresponding B (event name or names) in E1

    A simple if statement below works for 1 cell in B, C & D but not when trying to search the entire column. When I try to do that I get a Value error

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: harder than a simple IF statement

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


    ??
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    04-06-2015
    Location
    Wilmington, DE
    MS-Off Ver
    2010
    Posts
    4

    Re: harder than a simple IF statement

    Thank you for your quick response. Unfortunately when I tried to use this formula it gave me an error with no help . I actually created a separate spreadsheet and did it exactly the way it was noted with no luck. Any help would be appreciated.

  4. #4
    Registered User
    Join Date
    04-06-2015
    Location
    Wilmington, DE
    MS-Off Ver
    2010
    Posts
    4

    Re: harder than a simple IF statement

    I also tried this which returned one result....

    =INDEX(B2:B100,MATCH(1,INDEX((C2:C100<=A1)*(D2:D100>=A1),),FALSE))

    The challenge is that Date in A1 may be found in more than one cell in row C or D so I need to be able to return multiple results. Any thoughts?

  5. #5
    Registered User
    Join Date
    04-06-2015
    Location
    Wilmington, DE
    MS-Off Ver
    2010
    Posts
    4

    Re: harder than a simple IF statement

    Please see thread below and advise if you can help. I am hoping this is now the service I paid for. I am unsure how this works.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: harder than a simple IF statement

    I dont see any links in any of your threads

    rest of post deleted, OP has posted in CS, so I am closing this
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A lil bit harder code
    By inteliits in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-06-2015, 02:46 AM
  2. Any one notice coding gets harder when...
    By JapanDave in forum The Water Cooler
    Replies: 8
    Last Post: 06-26-2012, 09:28 PM
  3. Excel lookup function - harder than normal
    By twogoodtwo in forum Excel General
    Replies: 6
    Last Post: 01-19-2007, 02:30 AM
  4. This is A LOT harder than I thought it would be
    By Robert in forum Excel General
    Replies: 13
    Last Post: 08-23-2005, 08:05 PM
  5. [SOLVED] Things are getting a little harder!
    By S.H.C in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-13-2005, 07:06 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