Hello! I am trying to get the values from column "T" into column "O" when the values in "T" are between the values in "G" and "H". I have included the data. Both sets of data will eventually be named tables.
Example.xlsx
Hello! I am trying to get the values from column "T" into column "O" when the values in "T" are between the values in "G" and "H". I have included the data. Both sets of data will eventually be named tables.
Example.xlsx
Last edited by Gretsch308; 10-05-2012 at 09:26 AM. Reason: Trying to make title more understandable.
I think I solved this. There may be other ways. This is how I did it. I would still be interested in alternative solutions. Thanks for looking!
Solution.xlsx
Last edited by Gretsch308; 10-05-2012 at 03:12 PM.
the formula should be like this
=IF(MONTH(A2)+1=MONTH(B2),DATE(YEAR(A2),MONTH(A2)+1,DAY(1)-1),"")
copy down
dwint FTW!!!! That worked perfectly! Much cleaner than my solution as well. Thanks!!!
I think the formula has a small flaw. If the first day or last day of the month is in either the start date or the end date, the formula will return a blank cell.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks