Editing a formula

YOUNAN

Board Regular
Joined
Feb 10, 2015
Messages
101
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello,

I have this formula in my project in cell AC4, "=IF(D4>0;AC3-Y4;0)" . AC3 is a date cell equals year 2014.

if in Cell U3 i have date 2015, i want to get 0 in cell AC4.

Thanks in advance for any help.

Best regards.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Dear Mr. Scott,

Thanks for your reply.
i copied and pasted your formula , but it seems it not working. i dont ge 0 when u3 equals 2015.

BR
 
Upvote 0
If U3 contains a date rather than 2015 try
=if(year(u3)=2015;0;if(d4>0;ac3-y4;0))
 
Upvote 0
Maybe if you have a real date formatted as 2015...

=IF(YEAR(U3)=2015;0;IF(D4>0;AC3-Y4;0))

EDIT: My turn to be too slow :cool:
 
Last edited:
Upvote 0
Hi Again
Thanks for all .
I tried both 2 replies , i a sorry to say they didint work , still not getting zero.

Appreciate any help.

Best Regards
 
Upvote 0
Post some sample data so we are not guessing
 
Upvote 0
Sorry for late answer, i am not an advanced user in excel,

I wrote wrong in my question it should be U4 instead of U3, i changed to U4 in both formulas which was posted to me above and it didnt work.

here is an explanation to my table.

Cell D4 is birthday date in this format (1980-01-01), Cell AC3 is year 2014 in this format (2014), Cell Y4 is birthday also same as D4. Cell U4 is registration date. maybe Cell Y4 is repeated .

What i want is that Cell AC4 shows 0 when registration date is after 2014 as 2015 , 2016 and so on. and if registration date is 2014, earlier or blank, to count the age for example if birthdate is 1990 it would show 24.

Thank you for your patience and understanding.

Best Regards
 
Upvote 0
Thank you for your time, i am sorry to say its not working.
Whatever date i enter in cell U4 ( registration date ) i get blank in AC4 ( the cell that counts age ).

Is there any way to send you the File ?

Thanks in again.

Best Regards
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top