Putting an Excel Formula Within an IF formula - excel

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)))

Related

Date function returns wrong value

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")

In one specific cell have it output to 2 specific cells

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.

Formula in Excel query

I need help with stopping Excel from updating formula after a criteria is matched. I have the following:
Cell A1 is =TODAY() cell
B1 is "Date Received"
Cell C1 is number of days open (contains the formula). This value is obtained by the following formula:
=IF(B1="","-",IF(NETWORKDAYS($B1,$A$1)>0,NETWORKDAYS($C1,$A$1),"-"))
This returns the number of days a sales quote has been open.
The second part is once the invoice has been done and now I have a second date to use.
Cell D1 is Date the invoice is completed Cell E1 is number of days taken to invoice (contains the formula)
This is obtained by the following formula:
=IF(NETWORKDAYS($B1,$D1)>0, NETWORKDAYS($B1,$D1),"-")
What I need is once Cell D1 is filled out that Excel freezes Cell C1 and not continue counting days between B1 and A1 as cell A1 will update each new day? Can this be done and how if so?

Use Cell info in a formula

I was wondering if it's possible to use info from a cell in creating a formula. Here's the situation;
A1 = Date (01/01/17)
A2 = Month from that date (January)
I have different worksheets in the book for every month so for January the sheet is called January.
Is it possible to create a formula where I can reference a cell in a page that corresponds to the month in A2.
So for example in A3 the formula would be =January!A1
But instead of Jan I want it to be dynamic so it would change to any month depending on what I input in previous cells.
In A2 to get the month try
=TEXT(A1,"mmmm")
and then in A3
=INDIRECT(A2&"!A1")
or you can cut out A2 altogether and use just
=INDIRECT(TEXT(A1,"mmmm")&"!A1")

How Can I Separate Cell Data to Specific Column Automatically?

I want to separate Excel Cell Value With Specific Column.
Please, Check the screenshot.
I want to Separate all Date of Birth in one column, all age cell in Age Column. How Can I do it?
Automatically cell will move the specific column.
You can use this formula in cell F3
=CONCATENATE(IF(F$2="","",IFERROR(INDEX($B$3:$D$6001,ROW($A1),MATCH(F$2&"*",$B3:$D3,0)),"")),IF(F$1="","",IFERROR(INDEX($B$3:$D$6001,ROW($A1),MATCH(F$1&"*",$B3:$D3,0)),"")))
Put your partial search values in range F1:H2(1st row is used in case you have multiple search words for same column. Your data should start from cell A3.
I am assuming strings Date of Birth :-, Age :-, Born :-, Birthplace :-, etc. are consistent through out the sheet.
In Cell F1 enter following formula
=IFERROR(INDEX(B1:D1,1,MATCH("Date of Birth :-",INDEX(LEFT(B1:D1,16),0),0)),"")
In Cell G1 enter
=IFERROR(INDEX(B1:D1,1,MATCH("Age :-",INDEX(LEFT(B1:D1,6),0),0)),"")
And in Cell H1 enter following array formula
=IFERROR(INDEX(Sheet1!B1:D1,1,MATCH(1,("Born :-"=LEFT(Sheet1!B1:D1,7))+("Birthplace :-"=LEFT(Sheet1!B1:D1,13)),0)),"")
Drag/Copy down all formula as required. Change B1:D1 to your column range. See image for reference.
Note : Array formula needs to be committed by pressing Ctrl+Shift+Enter.
If you want result in different sheet then, assuming your data is in Sheet1 and you want output in Sheet2.
Enter following formula in Cell A1 of Sheet2
=Sheet1!A1
Then enter following formula in Cell B2 of Sheet2
=IFERROR(INDEX(Sheet1!B1:D1,1,MATCH("Date of Birth :-",INDEX(LEFT(Sheet1!B1:D1,16),0),0)),"")
Enter following formula in Cell C2 of Sheet2
=IFERROR(INDEX(Sheet1!B1:D1,1,MATCH("Age :-",INDEX(LEFT(Sheet1!B1:D1,6),0),0)),"")
Finally in Cell D2 enter following array formula
=IFERROR(INDEX(Sheet1!B1:D1,1,MATCH(1,("Born :-"=LEFT(Sheet1!B1:D1,7))+("Birthplace :-"=LEFT(Sheet1!B1:D1,13)),0)),"")
Drag/Copy down all formula as required. Change B1:D1 to your column range. See image for reference.

Resources