Adjust IF Formula

YOUNAN

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

I need some help with this Formula,

=IF(YEAR(U4)<=2014,B36*400+C36*200,0).

i need to adjust it so that it will check not only Year in cell U4 but also cells V4, W4 & Y4 and do the calculation (B36*400+C36*200,0)).


Thanks in advance.

Best Regards.

Younan
 
Hello Again

I enter date in YYYY format, but the cells format is Number with no decimals, as said before, the formula you provided works with U column but not V,W & Y.

thanks for your help.

Best Regards
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Do you mean you are just entering the year in V,W & Y - ie 2014
or are you entering a proper date such as 1/1/2014
 
Upvote 0
Hello again

i am entering date to test the formula, such as 2017, 2016, and so on but the cell is format is number.

Best regards
 
Upvote 0
2017 is not a date it's a number.
If you are just entering 4 digit numbers into those cells try
=IF(AND(YEAR(U4)<=2014,V4<=2014,W4<=2014,Y4<=2014),B36*400+C36*200,0)
 
Upvote 0
Can you please re-supply the file with the values you are inputting for U,V,W & Y
Also which cell is the formula in?
 
Upvote 0
Hello,
You need just to look in sheet which has name 1, the formula i am after should be placed in cell H17.
Row 17 is for Year 2014, Row 18 for year 2015 and so on till year 2026.
in Row 4 cells U, V, W, Y the formula in H17 should work and count if they empty or date in these cells is less than 2014.
in row 5 cells U, V, W, Y the formula in H17 should work and count if they empty or date in these cells is less than 2014.
and so on.

hope this will help.

Best regards
 
Upvote 0
I cannot tell why the formula is not working for you, unless I know what EXACTLY you are entering into those cells.
 
Upvote 0
It would have a lot easier (for both of us) if you had done as I requested. That is, to re-supply the file with some actual values in the cells, rather than entering a value taking a picture, entering another value & taking another picture.

How about
=IF(AND(U4<=2014,V4<=2014,W4<=2014,Y4<=2014),B36*400+C36*200,0)
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

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