What I would like to do is use a excel function in one specific cell to output to the cell next to it. So as you can see in the image below I enter =TODAY(). What I would like to do is in cell c4 is used today function to enter todays date in cell 4 and in Cell d4 enter the date 3 days later. So if possible in cell c4 I would enter a function that states todays date in cell c4 and the workday 3 days later.
For versions that support Dynamic Arrays, create a formula that Spills the result you want
Example
=WORKDAY(TODAY(),{0,3})
To make the number of days offset variable, use SEQUENCE to generate the offsets
=WORKDAY(TODAY(),SEQUENCE(1,2,0,D7))
For Non-Dyanamic Array versions, the first formula could also be entered as a array formula (CSE) into C4:D4
If you only ever want to use Today() as the starting date, you can use this:
=TEXT(TODAY(),"ddd, dd-MM-yyyy")&" - next workday: "&TEXT(WORKDAY(TODAY(),3)," dddd")
If you want the user to enter a date, that entry must be in a different cell, and you need to replace the Today() function in the formula above with that cell reference.
Related
Simple formula in excel cell returns incorrect data.
I have a date in cell A2 and cell A3 has the formula
=Month(A2)
The cell is formatted as custom, mmmm. Regardless of date entered, A3 returns January.
U dont need to use =Month command you must to use =TEXT command it is better
=TEXT(A2;"mmmm")
I am a beginner at excel. I want to multiply a cell with a number as the input given in another cell.
Cell A1 has the Input that is the duration(week/s) which is 1/2/3/4...
Cell A2 has the Start Date(i.e. Monday)
Cell A3 has the End Date(which is supposed to be Friday) which I want to calculate as per the number of weeks I enter in the Cell A1
Example:
If the Start Date(A2) is 14-02-2022 and the Duration(A1) is 1 week, the End Date(A3) should be 18-02-2022.
I tried with =A1*IF(A2=1,1.0001, IF(A2=2,1.00026)), to which I got the results. But when I tried to add the formula for the further durations, it said that I have entered too many arguments for this function.
How can I write a formula to handle the multiple durations?
Your start date can be any weekday (Monday-Sunday) and the formula will return always a Friday. Notice how rows 6:9 return same results even if the start date are not Mondays.
Formula in column C:
=7*(A2-1)+(B2+(5-WEEKDAY(B2;2)))
Please, notice I'm using an european WEEKDAY setup, that means that first day of week is Monday (in other countries is Sunday). If you change this, you'll need to adjust the whole formula:
WEEKDAY
Function
I am trying to set a cell to only display a date if there's a date in the reference cell. The date displayed needs to be exactly 1 year later so I'm using the following formula in cell C3:
=IF(B3="","","=DATE(YEAR(B3)+1,MONTH(B3),DAY(B3)")
The desired result is that if there is a date in B3, a date 1 year later will appear in C3. If there is no date in B3, C3 will remain blank.
If you're typing into a cell there are no speech marks -
=IF(B3="","",Date(year(b3)+1,month(b3),day(b3)))
I am using the following SUMIFS() function:
=SUMIFS(A:A, B:B, C1)
Column B:B contains dates in the following format:
2014-01-01 01:14:44
Now in cell C1 I'm not sure how to format the date so that it will grab all records that match all records that fit what's in cell C1. I have the following:
2014-01-01
but it return nothing. How do it make it so that it grabs the date, but doesn't discriminate the time portion?
You can leave C1 as a date and the data as it is - just change your formula to the following
=SUMIFS(A:A,B:B,">="&C1,B:B,"<"&C1+1)
Excel stores dates as integers, times are simply fractions of the day so every C1 date (no matter what time) falls somewhere between C1 and C1+1. This formula gets that data
The simplest way may be to keep your formula as is, other than changing C1 to D1, but insert a column immediately to the right of A with:
=INT(C1)
copied down to suit.
I use concatenate to pull data together from different cells in my spreadsheet. Since my data changes daily, I want the formula to also change daily without having to manually input the new cell in the concatenate formula.
UPDATE: Is there a way to use VBA coding to automate the concatenate process based on the following criteria? I have a row of data from D4:AH4 that I insert daily based on the new day. When I use the concatenate and the following formula:
=CONCATENATE(TEXT('Raw Data'!B4,"m/d")," ",TEXT('Raw Data'!C4,"")," ",TEXT('Raw Data'!E4,"0.0%"))
E4 being the cell that changes daily where next day would be F4, G4, etc... B4 = Today() C4 = Text of my choice E4 = is current days data but changes to the next cell daily. Example E4, F4, G4, etc.
=TEXT(B4,"m/d")&" "&C4&" "&TEXT(OFFSET(D4,0,COUNTA(D4:AH4)-1,1,1),"0.0%")
I use the & operator instead of CONCATENATE, but they do the same thing. The last element uses OFFSET. It starts at D4 and moves 0 rows down and x columns to the right, where x is the COUNTA of what's in D4:AH4.
It seems you need to create a dynamic range using a combination of OFFSET and COUNT.
See here, or Google for "excel dynamic range".