circular reference

breilly00

New Member
Joined
Sep 15, 2008
Messages
48
I am searching a sheet named data25 for certain values and counting the number of times they occur
A sample of some rows in sheet data25 is below
Date/TimeFirst Detected SpeedLast Detected Speed
2/1/2021 0:37​
64​
50​
2/1/2021 4:10​
37​
28​
2/1/2021 4:11​
19​
26​
2/1/2021 5:29​
14​
25​
2/1/2021 5:37​
36​
33​
2/1/2021 5:44​
52​
46​
In my results sheet I have the following starting at row 5. I am searching the first detected and last detected to see if either of the cells should be counted for the range of Low MPH or High MPH. In the count cell, I have this formula...=COUNTIFS(data25!$B$2:data25!$C$35000,">="&A6,data25!$B$2:data25!$C$35000,"<="&B6)-SUMPRODUCT(--(data25!$B$2:data25!$B$35000>=A6),--(data25!$B$2:data25!$B$35000<=B6),--(data25!$B$2:data25!$B$35000=$C$2:$C$35000))
and I get a circular reference and a value of 0 in the cell.

What do I have to change?

L-MPHH-MPHCOUNT
25​
34​
0​
35​
44​
45​
54​
55​
64​
65​
74​
75​
84​
85​
94​
95​
104​
105​
114​
115​
124​
125​
134​
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,469
Office Version
  1. 365
Platform
  1. Windows
If your trying to get a count, try
Excel Formula:
=COUNTIFS(data25!$B$2:data25!$C$35000,">="&A6,data25!$B$2:data25!$C$35000,"<="&B6)
 
Solution

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,469
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Forum statistics

Threads
1,141,479
Messages
5,706,621
Members
421,460
Latest member
Taamrak

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
Top