Help with formula

OTT

New Member
Joined
Jul 28, 2011
Messages
16
I have the following formula in my spreadsheet:

=IF(AND(ISNUMBER(N2),M2=""),NETWORKDAYS(AV$2,N2,AY$2:AY$13),"")

amoung other things it looks at column M and if it's blank then the formula generates a number. I now want it to look at column M and if it's blank I want it to then look at column X and if that's also blank then I want it to generate a number. If either column m or column X has an entry in it I don't want a number to be generated.


Can anyone tell me what changes I have to make to my formula to include this please?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Just a thought to maybe have the code be a tiny bit shorter, try:
Code:
=IF(AND(ISNUMBER(N2),M2="",X2=""),NETWORKDAYS(AV$2,N2,AY$2:AY$13),"")
It works here on a very small test sheet anyway...
 
Upvote 0

Forum statistics

Threads
1,224,536
Messages
6,179,402
Members
452,909
Latest member
VickiS

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