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
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How about
=IF(AND(YEAR(U4)<=2014,YEAR(V4)<=2014,YEAR(W4)<=2014,YEAR(Y4)<=2014),B36*400+C36*200,0)
 
Upvote 0
Thank you for your reply, i will test it when i get back home.
Just wondering if there is any other function ( Not IF Function Niether VBA ) to get the same result, asking just to increase my knowledge.

Thanks again

Best regards
 
Upvote 0
Very possibly, but formulae aren't my strong point, so cannot say for sure.
 
Upvote 0
Hi again,

thanks for all, I tried the formula, it works only for cell U4 not the for the other 3 cells V, W, Y.

Best regards
 
Upvote 0
In what way doesn't it work?
 
Upvote 0
Hello

This is what i get when entering the new Formula .

[h=1]We found a problem with this formula. Try clicking Insert Function on the Formulas tab to fix it, or click Help for more info on common formula problems. Not trying to type a formula? When the first character is an equal (=) or minus (-) sign, Excel thinks it's a formula: • you type: =1+1, cell shows: 2 To get around this, type an apostrophe ( ' ) first: • you type: '=1+1, cell shows: =1+1.[/h]
Thank you for your help.

Best Regards
 
Upvote 0
In that case you probably made a typo when entering the formula.
Just copy the formula & paste it into your sheet.
 
Upvote 0
Hello Again,
I copied and pasted the formula, no error message, but the sum works only the new formula works with cell U4, when entering a number greater than 2014 in cells V4, W4, Y4 it still continues to count.
I can send you the file if you have time to check it.

Again thanks for your time and patience.

Best regards
 
Upvote 0
Are you entering dates in those cells?
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,031
Members
448,940
Latest member
mdusw

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