Creating conditional formulas where zeros need to be excluded?

spennis

New Member
Joined
Mar 28, 2017
Messages
1
Hi,

Is there anyway of creating conditional formulas where zeros need to be excluded? I want to use CORREL (and similar functions) along with multiple criteria, such as:
=CORREL(IF(--("range A"="criterion A")--("range B"="criterion B");"range C");"range D")

i.e. I want to correlate two ranges, and exclude all values that do not meet my criterion. However, as CORREL depend on whether cells are blank or 0, I can't use arrays as they return 0 when the criterion are not met, can I?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Welcome to the forum.

I might be wrong here, but I think I have some insight for function CORREL. Excel Help says "If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included." Accordingly, your IF statement above needs a FALSE argument: put this in the false argument "" That will return blanks if the criterion are not met, and CORREL will dutifully ignore them.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,273
Members
448,559
Latest member
MrPJ_Harper

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