Update formula to include cells?

rizzo93

Active Member
Joined
Jan 22, 2015
Messages
299
Office Version
  1. 365
I have a column of dates that will be added to over time and include duplicates. I need to extract unique dates from that column to create a dynamic list.

To that end, I created a helper column (Column F) to display a 1 for when each date first occurs in the column; if not, then 0.

A
F
Tuesday, November 27, 2018
1

Monday, November 26, 20181
1

Friday, November 26, 2018
0

Friday, December 7, 2018
1

Friday, December 7, 2018
0

Friday, December 8, 2018
1


<tbody>
</tbody>

The formula in column F:

Code:
 =IF(A2="","",(IF(COUNTIF(A$2:A2,A2)=1,1,0)))

The COUNTIF uses an expanding range (A$2:A2, A$2:A3, etc.)) to determine whether or not the date in column A is the first one.


For some reason, Excel display one of those in-cell error tips (the ones with the green arrow) stating "formula omits adjacent cells." This always starts in the second cell in column F. If I select "Update Formula to Include Cells" from the pop-up tip, the error will the change to "Copy Formula from Above".


This will throw off my calculations for other columns.

Anyone know what's going on?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
You could just turn that error off in Error checking if it's bothering you
 
Upvote 0
Hi JohnnyC, and thanks.


Ordinarily, that's what I'd do, but this is a case where it's messing up my calculations...at least, up to this point.


I've since tried entering the new data consistently which seems to have kept the problem from happening for now.
 
Upvote 0

Forum statistics

Threads
1,215,093
Messages
6,123,067
Members
449,090
Latest member
fragment

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