Faulty TIME calculation???

SFCChase

Board Regular
Joined
Jun 25, 2013
Messages
107
Office Version
  1. 2016
Platform
  1. Windows
I have a page of data that compiles an overall time from multiple events. I'm trying to set up a helper column with a TRUE/FALSE result for use in another formula but for some reason my TIME formula keeps giving FALSE results on every row except my top one.

Name​
Total Time​
Event A​
Event B​
Event C​
Event D​
Event E​
Event FEvent G
Helper​
JOE26.5908:2000:5500:4502:5503:2501:1409:25TRUE
MIKE26:4106:3501:2201:1005:2200:5501:2209:55
ROB35:4510:2500:5000:5810:2102:1002:0109:00
BILL00:00

My Total Time formula is designed to SUM event times if they are all entered.
Cell B2: =IF(AND(A2="",C2="",D2="",E2="",F2="",G2="",H2="",I2=""),"",SUM(C2:I2))
For some reason those with blank cells keeps defaulting to 00:00 instead of staying blank.

I want a TRUE result in the helper cell if the total time is under 30 min and there are no missing event times.
Cell J2: =AND(B2<TIME(0,30,0),C2<>"",D2<>"",E2<>"",F2<>"",G2<>"",H2<>"",I2<>"") gives me a TRUE result, however when i drag the formula down I get FALSE as a result in all the other cells.

Any suggestions would be appreciated
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
A is that supposed to blank for BILL - which i assume is in A ???? not sure on the info provided - but A column is not blank as it has BILL in it

see my example column L row 6 is blank - as nothing in the cells listed - including bill

i would suggest that
AND(A2="",C2="",D2="",E2="",F2="",G2="",H2="",I2="")
one or more of these cells is NOT blank and may have a special character or space in - works for me for cells without a name .... or in your example BILL is in A , is that supposed to be blank ????? for the total , in which case
AND(C2="",D2="",E2="",F2="",G2="",H2="",I2="") dont include A

try testing each one separately to see if true
in a cell just type
=A2=""
see if that returns false or true - change the row to where you are tying to run that test

OR is that supposed to blank for BILL - which i assume is in A ???? not sure on the info provided - but A column is not blank as it has BILL in it

its difficult to know whats wrong here

not sure why you are getting a TRUE
=AND(B2<TIME(0,30,0),C2<>"",D2<>"",E2<>"",F2<>"",G2<>"",H2<>"",I2<>"")

TIME(0,30,0)
thats 30mins - and none of those times are under 30mins - all hours

Event a - is that 8hrs 20mins ?? or 8mins 20sec

Book2
ABCDEFGHIJKLMN
1NameTotal TimeEvent AEvent BEvent CEvent DEvent EEvent FEvent GHelperWorks OK -
2JOE26.598:200:550:452:553:251:149:25TRUE26:59FALSE1.12430556
3MIKE26:41:006:351:221:105:220:551:229:5526:41FALSE1.11180556
4ROB35:45:0010:250:500:5810:212:102:019:0035:45FALSE1.48958333
5BILL0:000:00FALSE0
6 FALSE
Sheet1
Cell Formulas
RangeFormula
L2:L6L2=IF(AND(A2="",C2="",D2="",E2="",F2="",G2="",H2="",I2=""),"",SUM(C2:I2))
M2:M6M2=AND(B2<TIME(0,30,0),C2<>"",D2<>"",E2<>"",F2<>"",G2<>"",H2<>"",I2<>"")
N2:N5N2=IF(AND(A2="",C2="",D2="",E2="",F2="",G2="",H2="",I2=""),"",SUM(C2:I2))


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
A is that supposed to blank for BILL - which i assume is in A ???? not sure on the info provided - but A column is not blank as it has BILL in it

see my example column L row 6 is blank - as nothing in the cells listed - including bill

i would suggest that
AND(A2="",C2="",D2="",E2="",F2="",G2="",H2="",I2="")
one or more of these cells is NOT blank and may have a special character or space in - works for me for cells without a name .... or in your example BILL is in A , is that supposed to be blank ????? for the total , in which case
AND(C2="",D2="",E2="",F2="",G2="",H2="",I2="") dont include A

try testing each one separately to see if true
in a cell just type
=A2=""
see if that returns false or true - change the row to where you are tying to run that test

OR is that supposed to blank for BILL - which i assume is in A ???? not sure on the info provided - but A column is not blank as it has BILL in it

its difficult to know whats wrong here

not sure why you are getting a TRUE
=AND(B2<TIME(0,30,0),C2<>"",D2<>"",E2<>"",F2<>"",G2<>"",H2<>"",I2<>"")

TIME(0,30,0)
thats 30mins - and none of those times are under 30mins - all hours

Event a - is that 8hrs 20mins ?? or 8mins 20sec

Book2
ABCDEFGHIJKLMN
1NameTotal TimeEvent AEvent BEvent CEvent DEvent EEvent FEvent GHelperWorks OK -
2JOE26.598:200:550:452:553:251:149:25TRUE26:59FALSE1.12430556
3MIKE26:41:006:351:221:105:220:551:229:5526:41FALSE1.11180556
4ROB35:45:0010:250:500:5810:212:102:019:0035:45FALSE1.48958333
5BILL0:000:00FALSE0
6 FALSE
Sheet1
Cell Formulas
RangeFormula
L2:L6L2=IF(AND(A2="",C2="",D2="",E2="",F2="",G2="",H2="",I2=""),"",SUM(C2:I2))
M2:M6M2=AND(B2<TIME(0,30,0),C2<>"",D2<>"",E2<>"",F2<>"",G2<>"",H2<>"",I2<>"")
N2:N5N2=IF(AND(A2="",C2="",D2="",E2="",F2="",G2="",H2="",I2=""),"",SUM(C2:I2))


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
All times in my workbook are formatted to mm:ss so the times in the cells are all less than 1 hour.

The IF...SUM formula is used for column B. If there are blanks in any events I want cell B to be blank (so Bill's name would still be there, but his total time would be blank since there are no event times.

The AND formula that keeps returning FALSE is what really doesn't make sense. I tried going cell by cell to see if all formatting and formulas were the same but it still tells me that the total time for JOE is less than 30 min (TRUE) but says MIKE is FALSE using =B2<TIME(0,30,0)) and dragging it down the column

Due to restrictions on govt computer i can't use XL2BB
 
Upvote 0
maybe worth checking what excel thinks it is

i have entered the values - as 0:0:0
and formatted as MM:SS
which appears to work OK

BUT below are the values formatted as general - maybe just check you get the same values as the MIN:SEC and it does not see them as HH:MM

column B is formatted as H:M:S

Book1
CD
1Event AEvent A
20.34722222208:20:00
30.27430555606:35:00
40.43402777810:25:00
5
6
7
8MINS : SECMINS : SEC
90.00578703700:08:20
100.00457175900:06:35
110.00723379600:10:25
12
13
1430 mis30 mis
150.02083333300:30:00
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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