Single value in entire array check

TobyMac

New Member
Joined
Jul 7, 2010
Messages
3
Hi!

I've got an array with a load of dates that might be the same. I need to check if they are all the same, and return a true/false or similar.

Is there a single cell command that will let me do this, or will i have to have to use nested IFs? (Editing the dimensions of the array beeing checked needs to be easy, so this isn't really an alternative).

VB is also an option, but the sheet needs to be editable by people who are not familiar with VB. It's a last case solution.

Thanks for all the help I've found so far on these message boards!

/TobyMac
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
If your array is in A1:A10

=(COUNTIF(A1:A10,"="&A1) = COUNTA(A1:A10))

=(COUNTIF(A1:A10,"="&A1) = ROWS(A1:A10)*COLUMNS(A1:A10))

are a couple of options. With a namedRange

=(COUNTIF(NamedRange,"="&INDEX(NamedRange,1,1)) = COUNTA(NamedRange)), etc.
 
Last edited:
Upvote 0
Code:
           A
1   30.06.2010
2   30.06.2010
3   30.06.2010
4   30.06.2010
5   30.06.2010
6   =ArrayEqualCheck(A1:A5)

In the above case, i would like a function to return the date that appears in all the above cells.

Code:
           A
1   30.06.2010
2   12.03.2010
3   30.06.2010
4   30.10.2009
5   30.06.2010
6   =ArrayEqualCheck(A1:A5)

In the above case, i would like a function to return a blank "".

Come to think of it, it shouldn't be a problem to implement a function that does exactly this. I might do just that.

What is the command to declarate a method to use in a sheet?
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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