Excel Formula Compare Data

knight944

I have a problem where I need to compare cells in a large list and find the following question below...

Question: How many times was a 0 value found before a 1 value in the list? This list is vertical(FYI) and also I will be unable to use macros, just need assistance in creating an IF formula for this.

Any help would be greatly appreciated on this!! Below is also a sample list.

0 1 0 0 0 1 0 0 1

Tom Sharpe

The basic formula would be

=COUNTIFS(A1:A9,0,A2:A10,1)

with the ranges adjusted as necessary.

If there are no empty cells in the range, this would be a bit more dynamic

=COUNTIFS(A1:INDEX(A:A,COUNT(A:A)-1),0,A2:INDEX(A:A,COUNT(A:A)),1)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Excel formula for data validation using regex

From Dev

Excel formula to compare a cell with other cells in a selected range

From Dev

Compare and count consecutive data in Excel

From Dev

Excel formula compare data in two columns, then use data in a 3rd column

From Dev

Excel - formula for horizontal data without VBA / Macros?

From Dev

excel pass data and not formula to other sheet

From Dev

Data/Time Formula Excel in VBA Program

From Dev

Compare data in large excel spreadsheet

From Dev

Excel formula to show FORMULA

From Dev

IF/THEN formula in excel to compare columns

From Dev

Need Help Creating an Excel Formula To Compare UPCs

From Dev

Excel Formula - IF/OR

From Dev

Excel formula to show data trends

From Dev

Excel changes simple data into formula

From Dev

Formula to compare data in same row for exact match and return a value

From Dev

Excel formula to sort data based on unique individuals?

From Dev

How to combine data and calculate in Excel with formula

From Dev

Compare two data sets by rank with Excel

From Dev

Compare and Return Data in Excel

From Dev

Struggling with formula and returned data in Excel

From Dev

Excel formula help - exclude data if a checkbox is unchecked

From Dev

Compare Data In Excel Not Working

From Dev

writing excel formula to compare two sheets

From Dev

Excel 2019 data validation list valid formula

From Dev

Excel 2007 Formula - Collapse cells and its data

From Dev

Excel Vlookup Formula required from pivoted data

From Dev

Can't find data referred to in an Excel formula

From Dev

Excel VBA: Compare formulas / formula structure of two cells

From Dev

Excel formula to compare the 2 columns and extract the value from another column

Related Related

HotTag

Archive