Doesn't subtract right.

wkirkcrawford

Board Regular
Joined
Dec 7, 2013
Messages
72
Greetings,

I keep a Diabetic Log, and I want to compare this period to the last period.

The code that I use is,;
="I'm " & (ABS(INT(I17-'April 2020 - July 2020'!I14) ) ) & " points, " & IF(I17>'April 2020 - July 2020'!I14,"Higher", "Lower")&" than the last peroid. "

The difference will range from 1 to 3 units.

Any ideas?

W. Kirk Crawford
Tularosa, New Mexico

2020-11-18.png
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
What's in I14 on the April sheet?
 
Upvote 0
Fluff,

=AVERAGE(K20:K312,P20:P312,V20:V312,AA20:AA312,AI20:AI312,AM20:AM312,AS20:AS312,AU20:AU312,AQ20:AQ312)

At the end of a time of that period was 171.

W. Kirk Crawford
Tularosa, New Mexico
 
Upvote 0
Is that in I14 or I16?
I would expect I14 to be using MAX, judging by your labels.
 
Upvote 0
Fluff,

No, I'm not looking for the MAX, but the Average. Maybe I should be looking at the Mediam.

There was a time when my High was over 400. Then I took it again and it was within 300 something.

I think that I use the wrong worksheet. It should have been,
="I'm " & (ABS(INT(I16-'July 2020 - Nov 2020'!I17) ) ) & " points, " & IF(I16>'July 2020 - Nov 2020'!I17,"Higher", "Lower")&" than the last peroid. "

W. Kirk Crawford
Tularosa, New Mexico
 
Upvote 0
You still seem to be comparing different values, Median on one sheet & Average on the other. Shouldn't you be comparing the same values?
 
Upvote 0
Fluff,

I'm sorry if it seems that way, but the rows change from one period to the next period.

Today the Average is 156. Last period it was 171,

Wl Kirk Crawford
Tularosa, New Mexico
 
Upvote 0
In that case your formula seems to be working as it's giving a value of 15.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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