if formula

Likeexcel

Active Member
Joined
Sep 2, 2009
Messages
308
Hi:
Need help writing a formula.

Currently i have this formul =IF(ISNA(MATCH(AY11,$BA$6,0)),"",AK11)

I want to add more to this formula that shows if column AZ equals account 42000 then add column A, C, B, AND E, if it does not equal to account 42000 then use this formula =IF(ISNA(MATCH(AY11,$BA$6,0)),"",AK11)

thank you.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Why are you using MATCH for a single cell comparison?

=IF(AZ11=42000,SUM(A11:C11,E11),IF(AY11=$BA$6,AK11,""))
 
Upvote 0
Thank you both for your replies.

A little change to the formula, if AZ equals account 42000 or 43000. Not just equals to account 42000.

Could you rewrite the formula for me?

thank you again.
 
Upvote 0
=if(or(az11={42000,43000}),sum(a11:c11,e11),if(ay11=$ba$6,ak11,""))
 
Upvote 0
Hi Hotpepper:
I'm getting a false error when the account does not equal. how do i get rid of the error?

thank you.
 
Upvote 0
ok, here is my new formula
IF(OR(AZ11={42000,43000}),SUM(F11:H11,K11,M11)+IF($BL$7=N11,O11,""))

it works when all of these columns has a number entered in.

However, there is "#value" error if there is no number in O11.

There is "false" error if the account is not 42000 or 43000.

can you rewrite it so i wouldnt get these two errors?

thank you in advance for your help.
 
Upvote 0
=if(or(az11={42000,43000}),sum(f11:h11,k11,m11)+(($bl$7=n11)*o11),"")
 
Upvote 0

Forum statistics

Threads
1,224,605
Messages
6,179,860
Members
452,948
Latest member
UsmanAli786

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