Excel highlight the cell of the matched date - excel

I just want to know if it is possible for a a certain cell to be highlighted based on date whenever I put notes into another cell? As you can see at the image below, there are set of calendar with dates.
Now what I want to achieve is to highlight those dates whenever I put notes into another cell as the image shown below
Let's say I input a note in 5-Jan, Saturday the cell in image 1 ( January 5 ) will be highlighted with background color

Your problem consists of two parts. First you need to know how to use conditional formatting based on a formula, then you need to map your calendar cells to the corresponding notes cells.
Conditional formatting based on a formula is documented on several places on the web, for example here. For your case, I have created a screenshot of a simple example:
The difficult part (or hard labour, depending on which route you choose) in your case is to map all cells in your calendar to the corresponding cells potentially containing the note. So you need a way to calculate which day in the year a particular cell is.
I think you could achieve that via 12 different conditional formatting formulas, where you refer to the contents of "this" cell using INDIRECT("RC",FALSE) to get the day of the month, and then add the number of days before that month (for which you need 11 different constants). That result can be used as the index into your array of potential notes. So for February, the formula to calculate the day of the year becomes:
31+INDIRECT("RC",FALSE)
Using that number to check the row in your notes column (let's say they are in column A), the conditional formula for all cells in February becomes
=NOT(ISBLANK(INDIRECT("A"&(31+INDIRECT("RC",FALSE)))))
Then do the same thing for each month, where the constant (like 31) is different for each of them.
Note that using "RC" in INDIRECT() like this only makes sense in a conditional formatting formula.

Related

Conditional formatting based on the content of a formula

Long story short: My boss has an Excel spreadsheet for calculating product prices. She has three columns to calculate different margins (so would contain a formula like =cost*.5 etc.), then adds to those values to determine final retail (so would be =column+500). She has her margin columns highlighted different colors and wanted to automatically highlight the final retail cell based on which margin column it references.
I'm sure there's a way of setting up the document from the start that makes this more intuitive, but short of restructuring her entire system, are there any formulas I could use in combination to return a format based on the content of the formula?
I immediately assumed to use "if cell contains specific text" and use the referenced column letter as the text, but excel reads the output for the formatting and not the formula, so I am stumped.
I was thinking somehow to use "isformula", but all the values are formulas just with different input.
Suppose you made table of all the unique formulas that are used:
formula_test, rule,
=cost*0.5,1
=column+500,2
Then you could create conditional formatting rules by formula with one for each unique formula case.
=VLOOKUP(FORMULATEXT(A1),$A$2:$B$3,2,FALSE)=1
=VLOOKUP(FORMULATEXT(A1),$A$2:$B$3,2,FALSE)=2
Where A1 is the first cell in the range where you want the conditional formatting to be applied.
The missing link was "SEARCH":
=SEARCH("=Sum(J",FORMULATEXT(N2))
(J = the referenced margin column, N2 = first cell to apply the final retail formula)

How to use Conditional Formatting between a cell pulling info from a date and comparign to a cell that includes only text

I have an Excel spreadsheet that has sections broken out by month. The headers are individual month names, not dates. Each of these is color-coded to match the month. I have a single cell set aside to display the current month (using the TODAY function). I want to be able to style the cell depending on which month of the year it is.
I set 12 conditional formatting rules to check the cell against. I started out by using ="November" (as an example), but it doesn't seem to equate (TODAY()) with the word "November," so the rule doesn't apply. Either I need a new formula for the cell or there's some formula I have to use in the conditional formatting to get it to recognize the similarity between a date-formatted cell and a text-formatted cell.
Any ideas?
Assuming the cell is in A2, I would just change your conditional formatting formula to something like
=MONTH(A2)=11
TODAY() actually saves the Excel date value (e.g. 42695 for today) but using the MONTH() function will return the month number.
You could also alter the TODAY() formula to be something like
=TEXT(TODAY(),"mmmm")
That will convert the visible date to just show the month name and should still work for your original conditional formatting formula.

Excel 2013 How to assign dates to cells

I'd like to assign dates to cells in a planner spreadsheet I have made.
Currently, the rows are months, the columns are days of the week, and each individual cells just have a number for the day of the month.
I don't want to display the full date in the cell, just have the cell "know" what date it is representing. One use of this could be to have the current day always highlighted in a different colour when opening the spreadsheet. Is this possible in Excel?
Looking at your question, the results would require to show multiple "dates" within the cell.
For January '16 for example, you would have 4 different type of dates as January has 4 Mondays (4;11;18;25). Is this what you're looking to achieve? Otherwise it is not possible to have excel figure out a single date unless you provide it with additional references in order to come up with a result.
Enter a date into a cell. Format the cell to show the part of the date you want to see. In the screenshot, column A contains full dates in each cell. A2 and down are formatted with the custom format code shown in column C
Excel still treats the dates as the underlying full dates in formulas, even though only parts of the dates are showing in the cell.

Highlighting cells in a column based on other cells dates in the same row

I have a spreadsheet that is used to track the last date a set of logs was downloaded.
We need to take logs at around the 7 day mark if possible (not critical)..
We have approximately 170 assets that we do this to.
The way the spreadsheet is set up the new date is added to an ever expanding list (rather than just overwriting) i have used conditional formatting to show that a date is less than 7 days old but that cell can be 20 columns accross and is still hard to cross reference to the asset number. I want to highlight column A if any other cell in the same row is highlighted (unless you have a less clunky way of doing it, having the date highlighted really is unimportant it is simply as far as i can get on my own.
I even tried doing a sort by cell colour but that seems to require that i pick one coulmn only.
Thanks for your help.
Conditional formatting will do this for you. I used this example:Column A has dates, Columns B and C have miscellaneous gibberish. (click the link to view the image)
Select the entire range of cells you want to follow these rules (possibly just "select all" to be sure you are getting future additions as well, then choose Conditional Formatting from the ribbon.
Conditional Formatting > Use a formula to determine...
Then enter the following code. =TODAY()-$A2<7 Update $A2 with whatever cell contains your first date value, and be sure to put a $ in front of its column reference so that the formula references only your date column and doesn't wander.Code: =TODAY()-$A2<7
Click the "Format" button to set whatever format you like (I chose yellow fill).

How can I copy row values based on the value of one of the cells in that row?

Column A consists of a series of dates extending from today into the future.
Columns B-E are other values corresponding to those dates.
Initially the first three rows were blank. Then I used the function TODAY() to obtain today's date and put that in cell A1. Today's date matches a value in cell A91. I now want the values in B1-E1 to match the values in B91-E91.
How can I go about doing that? It needs to be done with reference to cell A1 because I want it to update whenever the spreadsheet is opened. Thus I can't just type =B91 in B1.
Here's what it looks like
I am working in Google Spreadsheets but I suspect an answer related to Microsoft Excel would probably work here too.
The VLOOKUP function works, for example
=VLOOKUP(A1,$A$3:$E$1000,2,FALSE)

Resources