Posts by cpereznj

    Hi Mumps, I'm attaching the file as requested. The file only has one module with your latest code to merge comments if they have the same date. I highlighted the events with the same date in the Events sheet. I also made a note in the 2018 sheet to show that the dates in the Date columns are based on formulas. The formulas are there to make it easier to fill the calendar based on the year.
    Once again, thank you so much for your help on this project.

    Hi Mumps, I see the problem. Please use the latest file I uploaded on this post. It should have two modules. The first module contains your code with the cases. The second module contains the code to merge events with the same date. This code does not work if the calendar dates in the 2018, 2019 and 2020 are based on formulas. Hopefully, you can replicate the issue on your end.
    Thank you

    That is great Mumps. Worked like a charm. Thank you so much. I noticed that you used the LookIn:=xlFormulas string. What if the 2018 and other year worksheets use formulas to fill the calendar days? See attached file. I'm using the formulas to make it easy to auto create the calendar with just entering the first of the year in 2018 A1 and so forth. Your code above does not work if I use the formulas.


    Thank you again for all the help with this request.

    Hi there, I have a file used to track quantities based on dates. The file has three sheets: "2018", "2019" and "Events". Need the events in the "Events" sheet to auto populate comments in the corresponding "2018" or "2019" sheets based on the dates. For example:


    "Events" A3 - Event 1 should be placed in "2018" A3. This is because the date in "2018" B3 matches the date in "Events" B3.
    "Events" A4 - Event 2 should be placed in "2018" D3. This is because the date in "2018" E3 matches the date in "Events" B4.
    "Events" A5 - Event 3 should be placed in "2018" G3. This is because the date in "2018" H3 matches the date in "Events" B5 and so forth.


    Thank you in advance for your help.

    Hi there,


    I was able to put the following formula together from searching online:


    =CONCATENATE(LEFT(TRIM(RIGHT(B30,LEN(B30)-IF(ISERROR(FIND(" ",B30,
    FIND(" ",B30,FIND(",",B30,1)+2))),LEN(B30),
    FIND(" ",B30,FIND(" ",B30,FIND(",",B30,1)+2))-1))),1)&".")


    I have a list of names in the format: last name, first name and middle initial (with and without a ".")


    I'm trying to split the names into separate columns and add the "." to the middle initial. However if the name does not have a middle initial I still get the ".". How can I make the formula add the "." only when there is a middle initial or name?
    For example, if I have the following names:


    [TABLE="width: 704"]

    [tr]


    [td]

    Name

    [/td]


    [td]

    Last

    [/td]


    [td]

    First

    [/td]


    [td]

    Middle

    [/td]


    [/tr]


    [tr]


    [td]

    Smith, John J.

    [/td]


    [td]

    Smith

    [/td]


    [td]

    John

    [/td]


    [td]

    J.

    [/td]


    [/tr]


    [tr]


    [td]

    Smith, John James

    [/td]


    [td]

    Smith

    [/td]


    [td]

    John

    [/td]


    [td]

    J.

    [/td]


    [/tr]


    [tr]


    [td]

    Smith, John

    [/td]


    [td]

    Smith

    [/td]


    [td]

    John

    [/td]


    [td][/td]


    [/tr]


    [/TABLE]



    Thank you in advance for your help