Number of times date has changed

NewExcelUsr

New Member
Joined
Sep 7, 2022
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Hello,
I am new with excel and would like a helping hand please.
I have a spreadsheet with unique order numbers on Column A, and from Column B to Column I a date may be present; for each order number, I would like to find out how many times a date has changed. If all the date columns are blank, then I would like to display 0 as the value. If a date is entered in only one colum and all the other date columns are blank, then I would like to display 0 as the value. If a date is duplicate in any one of the date columns and all the other date columns are blank, then I would like to display 0 as the value since the date has not changed. If there are dates in only 3 columns, and the dates are different and all the other date columns are blank, then I would like to display 2 as the value. Regardless of how many times the same date (duplicate date) is shown across the date columns, it should display 0 as the value, but if the same date is entered in multiple columns, but there are different dates in other columns, then count only the ones where the date is not duplicate. In the screeshot on column J, here is how I would like the result to be.

Thank you in advance for your help!
 

Attachments

  • Date Changes.png
    Date Changes.png
    20.1 KB · Views: 14

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
In cell J2 put formula -

Excel Formula:
=COUNTA2(B2:I2)-1

Hope that works
 
Upvote 0

Forum statistics

Threads
1,216,091
Messages
6,128,775
Members
449,468
Latest member
AGreen17

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