#### YOUNAN

##### Board Regular
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)).

Best Regards.

Younan

### 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
=IF(AND(YEAR(U4)<=2014,YEAR(V4)<=2014,YEAR(W4)<=2014,YEAR(Y4)<=2014),B36*400+C36*200,0)

#### YOUNAN

##### Board Regular
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
Very possibly, but formulae aren't my strong point, so cannot say for sure.

#### YOUNAN

##### Board Regular

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
In what way doesn't it work?

#### YOUNAN

##### Board Regular

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]

Best Regards

#### Fluff

##### MrExcel MVP, Moderator
In that case you probably made a typo when entering the formula.
Just copy the formula & paste it into your sheet.

#### YOUNAN

##### Board Regular
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
Are you entering dates in those cells?

Replies
15
Views
275
Replies
3
Views
47
Replies
38
Views
977
Replies
3
Views
124
Replies
22
Views
834

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.

### Which adblocker are you using?

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

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