All in one Cell?

wkirkcrawford

Board Regular
Joined
Dec 7, 2013
Messages
72
Greetings,

I have a Diabetic Blood Sugar Log, and I want to show how much higher or below I am than last the period.

I want it to say, I'm 26 points Higher than the last period.

I know that the number, 26, is one cell - another cell on another worksheet. And the Higher or Below is IF cell 1 is > cell 2, Higher, Below? That's what I'm thinking.

W. Kirk Crawford
Tularosa, New Mexico
 
I'll reply here to your PM, and keep on the forum

Etaf,

That formula works quite well. ="I'm " & ABS(I14-'Oct 2019 - April 2020'!I14) & " points, " & IF(I14>'Oct 2019 - April 2020'!I14,"Higher", "Lower")

But the output is 13.799393939394.

I also went into Format Cell and Clicked Number and Zero Decimal Places.

How do I get rid of the Decimals?
Do you want the reply to be 13 - then use INT(ABS(I14-'Oct 2019 - April 2020'!I14))
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Etaf,

That formula works quite well. ="I'm " & ABS(I14-'Oct 2019 - April 2020'!I14) & " points, " & IF(I14>'Oct 2019 - April 2020'!I14,"Higher", "Lower")

But the output is 13.799393939394.

I also went into Format Cell and Clicked Number and Zero Decimal Places.

How do I get rid of the Decimals?

W. Kirk Crawford
Tularosa, New Mexico
 
Upvote 0
="I'm " & INT(ABS(I14-'Oct 2019 - April 2020'!I14) ) & " points, " & IF(I14>'Oct 2019 - April 2020'!I14,"Higher", "Lower")
if you wanted say 13 from 13.799393939394.
But if you wanted to round then you could use the round() function , also roundup() or rowndown()
 
Upvote 0
Wayne,

Thank you so very much. That worked great. I should have remembered that I had to use it years ago.

W. Kirk Crawford
Tularosa, New Mexico
 
Upvote 0
="I'm " & INT(ABS(I14-'Oct 2019 - April 2020'!I14) ) & " points, " & IF(I14>'Oct 2019 - April 2020'!I14,"Higher", "Lower")
if you wanted say 13 from 13.799393939394.
But if you wanted to round then you could use the round() function , also roundup() or rowndown()

etaf,

That formula worked fine, except, ever now and then, it doesn't subtract correctly. At times it is off by just one number.

I discovered that if I moved the INT to after ABS, it worked correctly.

Thank you for your very great assistance.

W. Kirk Crawford
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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