Function Question

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
974
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I wanted to ask what the "--" before --(ISNUMBER function does to the formula?

Thanks!!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
ISNUMBER(...) returns TRUE or FALSE.
--ISNUMBER(...) (-1*-1*ISNUMBER(...) coerses that to their equivalent 1 or 0.

So, for example SUMPRODUCT(--ISNUMBER(MATCH(A1:A10, $Z$1:$Z$100, 0))) returns the number of cells in A1:A10 that are also in Z1:Z100.

SUMPRODUCT can not add up {TRUE; FALSE; TRUE; ...}, but it can add up {1; 0; 1; ...}
 
Upvote 0
So by adding the "--" it will change a True/False to a 1 or 0. Where the 1 = True and a 0 = False. More or less like an on/off switch when it calculates a range(s) of cells?
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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