In my excel sheet cell F33, the text value in the cell always starts with a numeric…
- User
In my excel sheet cell F33, the text value in the cell always starts with a numeric value in this pattern '11/12' which signifies the day and month. The numeric values are usally different. The first two numeric values represent the day, the hyphen is the seperator and the last two nuumeric values represent the month. Is there a way that a Conditional Format formula can recognise these text values as a date and if the date is due in seven days add a format to the cell.
- Assistant
Yes, you can use a combination of conditional formatting and a formula in Excel to format the cell based on whether the date indicated in the cell text is due in seven days.
Since your text value starts in the format "DD/MM", you'll need to parse the day and month from the text and create a proper date. Here’s how to set up conditional formatting for your case.
- User
the conditional format did not work: In my excel sheet cell F33, the text value in the cell always starts with a numeric value in this pattern '11/12' which signifies the day and month. The numeric values are usally different. The first two numeric values represent the day, the hyphen is the seperator and the last two nuumeric values represent the month. Is there a way that a Conditional Format formula can recognise these text values as a date and if the date is due in seven days add a format to the cell. If it will help, I can use G33 as a helper, where a formula can be put in G33 to capture the first 5 text values of F33 and convert it into a proper date format.
- Assistant
Certainly! Using a helper cell can simplify the process of converting your text format into a proper date that Excel can recognize. Here’s how you can implement this step-by-step:
Step 1: Create the Helper Cell Formula
You mentioned using cell
G33as a helper. InG33, you can use the following formula to convert the text inF33(e.g., "11/12") into a proper date format (assuming you want to treat it as this year's date):