I want to add to my existing formula that works

DNapoli

New Member
Joined
Mar 13, 2012
Messages
35
Office Version
  1. 365
=IF(AND(MONTH(N3)=C3,YEAR(N3)=D3 ,H3,0)+AV3+AY3 (This formula works)

I want to add to the below as part of the top formula

If (And(Month(AQ3) =C3, Year (AQ3)=D3, H3,0 + AS3+AV3+AY3

Basically I am asking if the original invoice is in October and the add the original invoice amount H3 to AV3 + AY3 which is the credit and revised invoice.

Now I want to add the 2nd statement if the revenue is being re-allocated to another invoice in October add it to the formula as well.

Basically it would be two If And's in one statement.
 
Last edited:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Can you provide some sample data and expected results for each formula and as a whole? Also, did you retype those formulas here or copy/paste? I'm just curious, because they're missing a closing ")" and you said it works. So, I'm going to assume you just retyped them and forgot a ")".
 
Upvote 0
Maybe this?

=IF(AND(MONTH(N3)=C3,YEAR(N3)=D3 ,H3,0)+AV3+AY3 + If (And(Month(AQ3) =C3, Year (AQ3)=D3), H3,0 + AS3+AV3+AY3

Also, are you really sure that 1st part works?
Looks to me like you did not close your AND properly?
IF(AND(MONTH(N3)=C3,YEAR(N3)=D3 ,H3,0)+AV3+AY3
 
Upvote 0

Forum statistics

Threads
1,215,343
Messages
6,124,404
Members
449,156
Latest member
LSchleppi

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