I am looking for some help regarding an IF function on an Excel document.
Basically if the Date Listed cell is dated over 1 month ago (eg: Date Listed 6-Aug but today is 6-Sep) and the Date Sold cell is blank, then I would like the Mark Down cell to say 'MARK DOWN', which at the moment it does but it is only 10-Aug today.
If the Date Listed cell and the Date Sold cell both contain dates I would like the Mark Down cell to say 'OK'.
So far I have this written:
=IF(AND(DATE(YEAR(G2),MONTH(G2),DAY(G2)), ISBLANK(H2)),"MARK DOWN","OK")
I know I'm not far off but I need help sorting out the last parts..
Bonus if you can help me add a highlighted cell formatting to it :)!
[EXAMPLE IMAGE]
I think this should work
IF(AND((TODAY()-g2)>31,ISBLANK(H2)),"Mark Down","OK")
Apply conditional formatting on all the cells in MARK DOWN column which are equal to OK.
After that write this simple formula to check the condition.
=IF(AND(ISNUMBER(G2),ISNUMBER(H2)),"OK","MARK DOWN")
Update: if you use EDATE function everything gets simplified as this function takes care of exact day differences
so the whole solution is :
=IF(AND(EDATE((G2),1)=EDATE(NOW(),0),ISBLANK(H2)),"MarkDown","")
Let me know if you have any question on how this formula works.
Related
I would like to get a count on the total number of lessons of a specific length given within a specific date range.
I can figure out how to get the number of a specific type of lesson on a specific day with something like in:
=countifs(INDEX($E:$V,,MATCH($A8,$E$1:$V$1,1)),"=30")
But I can't figure out how to to find all of the values for say Dates <=A8 (for row 8), or dates >A8 & <=A9 (for row 9).
I am looking to get the data to output like the yellow section.
In Excel:
=countifs(INDEX($E:$V,,MATCH($A8,$E$1:$V$1,1)):INDEX($E:$V,,IFERROR(MATCH($A9,$E$1:$V$1,1)-1,COLUMN($V$1))),"=30")
But note, this will not work in Google Sheets.
I'm not sure it is the most elegant. My solution was to create a hidden column (Now E:E) for the to calculate the days between the A column dates.
Example for cell E9
=SUMPRODUCT(($F$1:$W$1>A8)*($F$1:$W$1<A9))
This returned a number of days between days A7 and A8.
I then modified Scott Craner's formula to this (Example for cell B9):
=COUNTIFS(INDEX($F:$W,,MATCH($A9-$E9,$F$1:$W$1,1)):INDEX($F:$W,,IFERROR(MATCH($A9,$F$1:$W$1,),COLUMN($W$1))),"=30")
Remember now, that after adding a column my dates shifted from E1:V1 to F1:W1
These two steps solved my issue with double counting on certain dates.
Lastly, I went back and tested this with Google Sheets and it does now appear that it will also work with Google Sheets.
I am trying to use a row level formula to filter down a series of opportunities to ones which occur at the end of the month, or within 2/3 days of the end of the month.
I have the following columns: "Opp name", offer submission date, "closed date"
Purpose of the exercise: I would like to identify opportunities which have an offer submission date at the end of the month. Currently, I have filtered the report to last month.
What I would like to do: I would like to filter the data down using a row level formula, so that I have all the opportunities which have an offer submission date around the end of the last month NOT just in the last month.
Please could someone advise me as to the syntax for such a row level formula. Huge thanks in advance!
**** Edit****
This is now what my formula looks like.
And the results are:
As you can see, the records which should be highlighted as 1 (and therefore 'True') aren't. Any help would be hugely appreciated.
My formula runs on Case Last Modified Date, you'll have to change field name. And mine's "DateTime" really, if your custom field is Date only - you don't need DATEVALUE().
For illustration let's say anything after 20th is month's end
IF(DAY(DATEVALUE(LAST_UPDATE)) > 20, 1, 0)
Looks promising:
You can decide to make it a Text formula or maybe really just display the day of the month and filter / sort by it... Doesn't matter much, all yours?
I have a column A1:A100 which all cells are a list of the days of the month.
one the other column B1:B100 I want to say which day of the week the text on A column is.
tried this:
=IF(A2="01/04/2021"; "thursday"; "")
cant make it work for more 29 options
I need some help here
Have a nice weekend
Try the WEEKDAY function and wrap it in the TEXT function:
=TEXT(WEEKDAY("01/04/2021", 1), "dddd")
I'm looking for a way to set a condition requirement that a specific date field will be equal to today's date, or yesterday's.
How do I do it?
Add a new formula resource of type Date and name it yesterday (or whatever) and put that code in there.
{!$Flow.CurrentDate} - 1
Edit: I am not sure if you are doing something differently but here is a screenshot of a Get Records flow element filtering based on a formula value:
And to be perfectly clear, here is a screenshot of that formula definition:
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I recently tookover a non-profit program for senior citizens called "Meals on Wheels", perhaps your city has one too.
Currently it is a very cumbersome routine of manually checking tags for each person who gets the meals and seeing if they can't eat certain things and what days of the week they get delivery.
I would love to computerize this in order to eliminate not only mistakes but make it run faster and smoother.
The tags contain names, address, foods they can't eat and days of the week.
Is there a way to computerize this? We have a meal menu run on excel if that helps.
I was advised to try using MS Access, but, I have never used it before, would this be the program we would need to do this?
Thanks guys
Access might be useful if you have a large number of people to cater for, or if you are constantly entering new information. It sounds as if Excel might be more useful in your case. A couple of things that might help you are conditional formatting and filtering.
This will highlight a client if they are due for a delivery today:
Create a spreasheet with people's names in column A starting on row 2 (headings are optional in row 1, but the formula below starts with row 2 anyway), put the days they have delivery in column B with the full day name written out like this Sunday, Wednesay, Friday or whatever. In the remaining column you could put addresses, foods, etc
Click on cell A2 and drag to select all the customers' names, the days, addresses, etc.
Click on Conditional Formatting at the top of the Excel window.
Click on New Rule
Selct Use a Formula to determine which cells to format
In the box labelled Format values where this formula is true copy and paste this formula:
=COUNTIF($B2,"*"&TEXT(WEEKDAY(TODAY(),1),"dddd")&"*")>0
Still in the dialog box, click the Format button, select the Fill tab and select a bright colour. Click OK to confirm the colour, then OK to save the new rule, then OK to apply the conditional format.
(This formula gets the date with TODAY(), converts it to the WEEKDAY() number (using Sunday as day 1), converts the day number to TEXT with the format "dddd" (Sunday instead of "ddd", which is Sun), COUNTIF() will only count the cell if it contains the day (giving 1 or 0), if it contains the day then '1 is greater than 0' becomes TRUE and the cell is conditionally formatted.)
If you want the formula to work for other dates instead of today you could replace the TODAY() part with a cell reference, say G1, then type the date you want in cell G1:
=COUNTIF($B3,"*"&TEXT(WEEKDAY($G$1,1),"dddd")&"*")>0
Then type a date like 22/5/12 in cell G1
If clients get deliveries on the same day every week, then to see who gets meals on Thursdays you could type Thursday in G1 & shorten the formula to:
=COUNTIF($B3,"*"&$G$1&"*")>0
To create a filter that displays only clients due that day instead of just highlighting them:
Create a spreadsheet laid out as before (starting in row 2, with the client's Delivery Days in column B - Monday, Thursday, Saturday) and, instead of Conditional Formatting, paste the formula into a cell in row 2 and use autofill by hovering the mouse over the bottom-right of the cell with the formula so the cursor changes to a + and double-clicking. You should get a column of TRUE and FALSE values, as long as you don't have any empty rows. (If you need empty rows, click and drag the + down instead.)
Go to the Data tab at the top of the Excel window and select the Filter button. Some down arrows should appear at the top of your columns. Select the down arrow above the TRUE/FALSE column and select only the TRUE checkbox. To display all clients again, select the same down arrow again and select Select All. Any time you add a new client to the spreadsheet, hover over a cell in the formula column and double-click the + autofill again to add the formula to the new client's row.
You could use both methods together to highlight and filter without a problem
There are other things that could help, but it depends on how you operate. You could write a column of 'todays ingredients' and use Conditional Formatting to highlight someone in red when an ingredient matches something they cannot eat. This could be risky if someone doesn't eat fish and you put haddock in the ingredients list because they will not match, of course!
If you want free Excel masterclasses I recommend YouTube's
Bill Jelen - 'Mr Excel' and ExcelIsFun