Adjust IF Formula

YOUNAN

Board Regular
Joined
Feb 10, 2015
Messages
94
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
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,275
Office Version
  1. 365
Platform
  1. Windows
How about
=IF(AND(YEAR(U4)<=2014,YEAR(V4)<=2014,YEAR(W4)<=2014,YEAR(Y4)<=2014),B36*400+C36*200,0)
 

YOUNAN

Board Regular
Joined
Feb 10, 2015
Messages
94
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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,275
Office Version
  1. 365
Platform
  1. Windows
Very possibly, but formulae aren't my strong point, so cannot say for sure.
 

YOUNAN

Board Regular
Joined
Feb 10, 2015
Messages
94

ADVERTISEMENT

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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,275
Office Version
  1. 365
Platform
  1. Windows
In what way doesn't it work?
 

YOUNAN

Board Regular
Joined
Feb 10, 2015
Messages
94

ADVERTISEMENT

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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,275
Office Version
  1. 365
Platform
  1. Windows
In that case you probably made a typo when entering the formula.
Just copy the formula & paste it into your sheet.
 

YOUNAN

Board Regular
Joined
Feb 10, 2015
Messages
94
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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,275
Office Version
  1. 365
Platform
  1. Windows
Are you entering dates in those cells?
 

Watch MrExcel Video

Forum statistics

Threads
1,127,052
Messages
5,622,420
Members
415,895
Latest member
Akhilesh28

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
Top