+ Reply to Thread
Results 1 to 12 of 12

IF text string is equal left characters and DDMM of DOB is outside a range.

  1. #1
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    IF text string is equal left characters and DDMM of DOB is outside a range.

    Hi,

    I have a multiple vlookup I'm trying to accomplish and I'd appreciate some help.

    Basically I have I need the formula to check the following.

    Firstly using IF/Left does the start of a text string have the characters ABC for the first 3, if so then VLOOKUP cell B1 to determine if the persons DDMM of their birth is in the 3 days after the last day of the end of the period in cell B1 (held in a named range called paycals)

    I've started the formula but I don't know how to tackle the 3 days part.

    Please Login or Register  to view this content.
    Would anybody have anything similiar? I've attached an example file.

    Thanks
    Attached Files Attached Files

  2. #2
    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,939

    Re: IF text string is equal left characters and DDMM of DOB is outside a range.

    See if this will get you heading in the right direction. The formula below will find the date and to the test for you, you just need to finish it off with the ABC part....

    =VLOOKUP($B$1,'Pay Calendars'!$A$2:$C$27,3,0)<=DATE(2014,MONTH($B$3),DAY($B$3))+3
    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

  3. #3
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: IF text string is equal left characters and DDMM of DOB is outside a range.

    Hi Dave,

    You could place a date in the Pay Period column in the Pay Calendars sheet and set its format to dd/yyyy and try using it in the vlookup.
    Do you want to set the Pay Period format as "dd/yyyy"?

    It would be better, if you can give us an example of what the input and the corresponding output would be.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  4. #4
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: IF text string is equal left characters and DDMM of DOB is outside a range.

    Hi Saarang84

    Unfortunately the pay period (23/2013) will change over time, and it can't be moved from (cell B1).

    It can be formatted as dd/yyyy, as can all of the pay period in column A of the pay calanders sheet. Is that what you mean?

    I'm not sure what you mean by input and output, the only two inputs are does the first 3 characters of the text string in C3 = "ABC", and if so is the end date of the pay period (23/2013)+3 days <= the DDMM of the DOB. The outpit is simply a Yes or blank, or any other text string.

    Does that help?

    Thanks

  5. #5
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: IF text string is equal left characters and DDMM of DOB is outside a range.

    I think you've not understood my question. Let me be more clear.

    The Pay Period looks like its in the format dd/yyyy. How are you generating it? It corresponds to the Pay Period column in Pay Calendars sheet, but what does it signify ? Can't it be generated from a date ? (Say, for e.g., 5/7/2014 can be formatted as 07/2014 and can be used for vlookup)

    I asked for an example, bcoz, you have mentioned a DOB date in the Calculations sheet. What is the corresponding value you want from Pay Calendars sheet for this date?

  6. #6
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: IF text string is equal left characters and DDMM of DOB is outside a range.

    Ok, I understand now.

    It's a fortnightly pay period (1-26) followed by the financial year (1/7/13 - 30/6/14). So this instance is is pay 23 of the 13/14 finacial year and the dates in columns B & C are the first andlast dates of the range.

    Generally it would just be text, but it has no relation to dd/yyyy really.

  7. #7
    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,939

    Re: IF text string is equal left characters and DDMM of DOB is outside a range.

    Did you see post # 2

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: IF text string is equal left characters and DDMM of DOB is outside a range.

    Pl see attached file.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: IF text string is equal left characters and DDMM of DOB is outside a range.

    Hi FDibbins,

    Yes I did see post two but I'm still trying to get it to work as it's not doing what I expected in terms of terms of returning a Yes/No.

    The amended formula is
    Please Login or Register  to view this content.
    However this is returning the wrong answer, I think it needs to be if the DDMM part of the birthday is >= is the Vlookup date +1 (5/5) but =< Vlookup date +3 (7/5)

  10. #10
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: IF text string is equal left characters and DDMM of DOB is outside a range.

    Hi All

    kvsrinivasamurthy seem to have solved this, so thanks kvsrinivasamurthy.

    Also thanks FDibbins and Sarrang84. Much appreciated all of you.

  11. #11
    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,939

    Re: IF text string is equal left characters and DDMM of DOB is outside a range.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  12. #12
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: IF text string is equal left characters and DDMM of DOB is outside a range.

    Hi FDibbins,

    Thanks for the reminder I did intend to close it yesterday but it slipped my mind.

    Thanks again to everybody who contributed to a solution.

+ 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. [SOLVED] Insert multiple characters into string w LEFT RIGHT functions
    By minnesotan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-30-2014, 11:16 AM
  2. [SOLVED] Extract left characters from string with exception of 2 right characters
    By sweetkel23 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-16-2012, 10:45 PM
  3. removing 4 characters from the left of a string
    By mfish2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2010, 07:16 PM
  4. Replies: 1
    Last Post: 04-18-2005, 05:06 PM
  5. Replies: 1
    Last Post: 04-17-2005, 08:10 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