Formula

YOUNAN

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

I have an excel file in which , cell G23 ( remaining dept fot year 2018 ) equals cell AJ22 ( unpaid depts Year 2019 ).
What i need is a formula that hides the value in cell G23 if its not 2019 yet.

Thanks in advance.

Younan
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Wrap it in an IF statement like this:
Code:
=IF(YEAR(TODAY())<2019,"",AJ22)
 
Upvote 0
Hello Joe4,

Thank you for early reply but the formula is not working.


I copied and paste your formula but i get the following error.


there is a problem with this formula.

Best Regards

Younan
 
Upvote 0
Are you using a version that uses semi-colons instead of commas as arguments separators in formulas (like some European versions do)?

If so, then the formula would look like:
Code:
=IF(YEAR(TODAY())<2019;"";AJ22)

If that still does not work, please let us know:
- Where you are located
- If you are using Windows or Mac version
- Which version of Excel you are using (i.e. 2003, 2007, 365, etc)
 
Upvote 0
Hello Joe4,

Thank you very much the 2nd formula worked like a charm.
Thank u again.

Best regards
Younan
 
Upvote 0
You are welcome.

That is something that you will want to note for future reference. Most locales use commas to separate formula arguments, but some use semi-colons.
So if you ask other questions and get formulas that do not work, simply try replacing the commas in the formula with semi-colons.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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