One formula work, but not always.

wkirkcrawford

Board Regular
Joined
Dec 7, 2013
Messages
72
Greetings,

I'm creating a Log of my Blood Sugar Readings.

I am checking the last time that I took a shot. Not all lunchtime do I take a shot.

Here's what I started with; =IF(AC10="","",IF(U10<>"",MOD(AA10-I10,1),MOD(AA10-R10,1))) AC10 is current reading, U10 does the VLOOKUP, results could be 2 to 7. AA10 is current time, I10 is the time I took my shot in the morning. R10 is lunchtime that I should take a shot, but sometimes I don't take a shot.

With this current Formula a blank cell, U11, results in 'VALUE'. It should check, MOD(AA11-R11,1).

I'm using a Surface RT and Office came with it.

W. Kirk Crawford
Tularosa, New Mexico
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hard tyo say for sure, but chect that the cells that contain dates/times, actually do contain dates and times, and not just text that looks like a date/time (I am assuming that because you are using MOD() there is a date attached to the time?)

Test for valid date/time by using =ISNUMBER(cell-ref) FALSE indicates text
 
Upvote 0
Never mind. I figured the difference between <>"" and ="" and ISBLANK.

I figured it out.

W. Kirk Crawford
Tularosa, New Mexico
 
Upvote 0
I figured the difference between <>"" and ="" and ISBLANK.

="" and ISBLANK(cell-ref) should produce the same answer on a blank cell

<>"" is just the opposite, it will return TRUE for a cell that is not blank (and this includes a cell with a formula in it)

so ="", ISBLANK(cell-ref) and =NOT(<>"") are all the same thing :)
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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