+ Reply to Thread
Results 1 to 7 of 7

"if" style question based on certain dates...

  1. #1
    Registered User
    Join Date
    10-03-2007
    Posts
    20

    "if" style question based on certain dates...

    Hi guys,

    Perhaps a poor choice in title, however, Im far from being an excel guru...

    Heres my question:

    There are three specific pathways of training (step by step) that a recruit into my organisation will go. These pathways are defined by when they were recruited. So I need a formula that will paste the training pathway, based on a certain date you may enter into a defined cell...

    eg.

    02/01/06 - 01/01/07 -> training pathway 1
    02/01/05 - 01/01/06 -> training pathway 2
    02/01/04 - 01/01/05 -> training pathway 3

    In cell A2 I might type in the date 05/05/06 and then training pathway 1 will be copied and inserted from B2 across...

    If you guys have any ideas how I might go about it I would be indebted.

    Cheers

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    RobMarshall

    Please read forum rules and post your thread in the correct forum
    Programming forum is for VBA macro code type questions

    Moving this thread to Excel Worksheet Functions forum

    A thread with the rules is available at the top of each forum or see link below for rules
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    10-03-2007
    Posts
    20

    "if" style question based on dates...

    Hi guys,

    Perhaps a poor choice in title, however, Im far from being an excel guru...

    Heres my question:

    There are three specific pathways of training (step by step) that a recruit into my organisation will go. These pathways are defined by when they were recruited. So I need a formula that will paste the training pathway, based on a certain date you may enter into a defined cell...

    eg.

    02/01/06 - 01/01/07 -> training pathway 1
    02/01/05 - 01/01/06 -> training pathway 2
    02/01/04 - 01/01/05 -> training pathway 3

    In cell A2 I might type in the date 05/05/06 and then training pathway 1 will be copied and inserted from B2 across...

    If you guys have any ideas how I might go about it I would be indebted.

    Cheers



    Edit:

    I've attached an example of what I mean... Hope this helps.
    Attached Files Attached Files
    Last edited by RobMarshall; 11-19-2007 at 04:45 AM.

  4. #4
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    hi Rob,

    Please see the attached file for a couple of ways you could do this (may not be the best approach but I'm sure it will work).
    (I run Excel 2003 & don't yet have access to the "converter" to open 2007 files, so I've just created a new example file.)

    The "Using If" sheet is probably easier to interpret but is limited by the ability to nest If statments so I think that the "Using Sumproduct" sheet example will be better. the Sumproduct approach is more flexible for incorporating other "pathways" at a future stage (esp if you change the references to the Lookup Table to a dynamic named range)...

    Note, my use of the vlookup on the sumproduct page is the quickest way (for me) of being able to provide a text field result after using sumproduct.

    btw,
    I've seen your question at each of the below links. Please try not to cross post, or if you do, please state that you are cross posting & give a link to the previous post.
    http://www.excelforum.com/showthread.php?t=623510
    &
    http://www.excelforum.com/showthread.php?t=623507

    hth
    Rob
    Attached Files Attached Files
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  5. #5
    Registered User
    Join Date
    10-03-2007
    Posts
    20
    My appologies for the spam... I had thought I posted this edit under the other Thread after being told that I had misposted this one... I appreciate the help at any rate. Thanks

  6. #6
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    hey, no problem :-)

    As long as the suggestions are helpful for you, it's all good!

    Thanks for the feedback
    Rob

  7. #7
    Registered User
    Join Date
    10-03-2007
    Posts
    20
    The pleasure is all mine... You've at least given me a starting point... Now its time to nut out the rest of it ;-)

    Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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