Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kidcasey13
 
Posts: n/a
Default .0 is creating #VALUE! Error

I am currently using the following formula:

=(H21*60)-IF(MID(H21,FIND(".",H21,1),5)0,(MID(H21,FIND(".", H21,1),5)*60),"")+(MID(H21,FIND(".",H21,1),5))

However, I get the results of #VALUE!

In cell H21, the value is 27.00

How do I force excel to recognize the .00 in the formula?

Thanks,
Ryan

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Scoops
 
Posts: n/a
Default .0 is creating #VALUE! Error

Hi Ryan

FIND is a string function, it's looking for text.

What result are you after?

Regards

Steve

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default .0 is creating #VALUE! Error

Are you trying to multiply the integer portion by 60 and add to that the
decimal portion?

=60*INT(H21)+MOD(H21,1)


"kidcasey13" wrote:

I am currently using the following formula:

=(H21*60)-IF(MID(H21,FIND(".",H21,1),5)0,(MID(H21,FIND(".", H21,1),5)*60),"")+(MID(H21,FIND(".",H21,1),5))

However, I get the results of #VALUE!

In cell H21, the value is 27.00

How do I force excel to recognize the .00 in the formula?

Thanks,
Ryan


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default .0 is creating #VALUE! Error

What are you trying to do? Since you are multiplying with 60 I assume this
has something to do with times
If you have a decimal value for hours like 12.5 equaling 12 hours and 30
minutes you can convert it to excel time by multiplying with 24 and format
as time. If you have 12.5 and it means 12 hours and 50 minutes use INT(H21)
to extract hours and MOD(H21,1)*100 to extract minutes

--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon




"kidcasey13" wrote in message
ups.com...
I am currently using the following formula:

=(H21*60)-IF(MID(H21,FIND(".",H21,1),5)0,(MID(H21,FIND(".", H21,1),5)*60),"")+(MID(H21,FIND(".",H21,1),5))

However, I get the results of #VALUE!

In cell H21, the value is 27.00

How do I force excel to recognize the .00 in the formula?

Thanks,
Ryan


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default .0 is creating #VALUE! Error

Hi Ryan,

instead of "H21", use "TEXT(H21,"0.00")"

--
Kind regards,

Niek Otten

"kidcasey13" wrote in message ups.com...
I am currently using the following formula:

=(H21*60)-IF(MID(H21,FIND(".",H21,1),5)0,(MID(H21,FIND(".", H21,1),5)*60),"")+(MID(H21,FIND(".",H21,1),5))

However, I get the results of #VALUE!

In cell H21, the value is 27.00

How do I force excel to recognize the .00 in the formula?

Thanks,
Ryan





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default .0 is creating #VALUE! Error

Is this what you need?

=(H21*60)-IF(ISERROR(MID(H21,FIND(".",H21,1),5)0),0,(MID(H2 1,FIND(".",H21,1
),5)*60))*2

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"kidcasey13" wrote in message
ups.com...
I am currently using the following formula:


=(H21*60)-IF(MID(H21,FIND(".",H21,1),5)0,(MID(H21,FIND(".", H21,1),5)*60),""
)+(MID(H21,FIND(".",H21,1),5))

However, I get the results of #VALUE!

In cell H21, the value is 27.00

How do I force excel to recognize the .00 in the formula?

Thanks,
Ryan



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kidcasey13
 
Posts: n/a
Default .0 is creating #VALUE! Error

I am definitely working with times here. We work in quarter hours, so
..00, .25, .50, .75 (0 mins, 15 mins, 30 mins, 45 mins)

Avg hrs worked/week = 27.00

So I have 27.00 hours worked this week, however, I need to convert it
into minutes for a different formula (to determine how much data entry
is necessary per minute), therefore I'm taking the 27*60 to get the
number of minutes from hours, and adding the number of minutes to the
hours. So, 27*60=1620+Minutes (in this case, zero, which is throwing
the error).

In another example, 27.15=1620+20=1640 minutes.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default .0 is creating #VALUE! Error

So why not just

=H21*60


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"kidcasey13" wrote in message
oups.com...
I am definitely working with times here. We work in quarter hours, so
.00, .25, .50, .75 (0 mins, 15 mins, 30 mins, 45 mins)

Avg hrs worked/week = 27.00

So I have 27.00 hours worked this week, however, I need to convert it
into minutes for a different formula (to determine how much data entry
is necessary per minute), therefore I'm taking the 27*60 to get the
number of minutes from hours, and adding the number of minutes to the
hours. So, 27*60=1620+Minutes (in this case, zero, which is throwing
the error).

In another example, 27.15=1620+20=1640 minutes.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom error bars not working [email protected] Charts and Charting in Excel 3 December 8th 05 10:17 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
XL - Oracle connection Error parthi4u Excel Discussion (Misc queries) 0 September 14th 05 08:45 PM
Problem Opening an Excel File MSO9.DLL Error Mash23 Links and Linking in Excel 0 August 24th 05 03:21 PM
error "module not found" Amit Excel Discussion (Misc queries) 1 May 13th 05 01:24 PM


All times are GMT +1. The time now is 11:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"