#1   Report Post  
Keith
 
Posts: n/a
Default Trouble with formula

I am trying use the following formula in cell M6. =IF(K6<25,25,K6-L6) but it
returns "value!" if K6 is blank. But if K6 is blank I want it to leave the
cell blank. I have tried everything I can think of. Could you help me with
this.
  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default

I only get that error when it contains text.

Is K6 really blank?
Does it contain a space, so it only looks like it's blank?

--
Regards,
Ron

  #3   Report Post  
bigwheel
 
Posts: n/a
Default

"Keith" wrote:

I am trying use the following formula in cell M6. =IF(K6<25,25,K6-L6) but it
returns "value!" if K6 is blank. But if K6 is blank I want it to leave the
cell blank. I have tried everything I can think of. Could you help me with
this.


Amend your formula to test for the blank condition first i.e.

=IF(K6="","",IF(K6<25,25,K6-L6))
  #4   Report Post  
Ragdyer
 
Posts: n/a
Default

The only way your formula would return the #VALUE! error is if there's
something in K6 that you don't see ... like a <space or a null return < ""
from an existing formula.


=IF(K6="","",IF(K6<25,25,K6-L6))

Post back if you *don't* have a formula in K6 that is returning a null< ""
.

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Keith" wrote in message
...
I am trying use the following formula in cell M6. =IF(K6<25,25,K6-L6) but

it
returns "value!" if K6 is blank. But if K6 is blank I want it to leave

the
cell blank. I have tried everything I can think of. Could you help me

with
this.


  #5   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Another possibility is =IF(ISERROR(K6-L6),"",IF(K6<25,25,K6-L6))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Keith" wrote in message
...
I am trying use the following formula in cell M6. =IF(K6<25,25,K6-L6) but
it
returns "value!" if K6 is blank. But if K6 is blank I want it to leave
the
cell blank. I have tried everything I can think of. Could you help me
with
this.





  #6   Report Post  
Keith
 
Posts: n/a
Default

HERE IS THE WHOLE ROW
A6 DATE
B6 FIRST NAME
C6 LAST NAME
D6 CLIENT'S AGE
E6 ADDRESS
F6 CITY
G6 TIME ON
H6 TIME OFF
I6 TOTAL TIME FORMULA =(H6-G6)*1440
J6 RATE FORMULA =IF(I6=0,"
",IF(I6<=G33,H33,IF(I6<=G34,H34,IF(I6<=G35,H35,IF( I6<=G36,H36,H37)))))
K6 CHARGE FORMULA =IF(J6=" "," ",I6*J6)
L6 SENIOR DISCOUNT FORMULA =IF(D664,K6*0.15,"")
M6 TOTAL DUE FORMULA =IF(K6="","",IF(K6<25,25,K6-L6))

THIS ALL WORKS FINE IF D6 IS 65 OR GREATER, HOWEVER IF NOT IT RETURNS #VALUE!

I HAVE BEEN WORKING ON THIS FOR DAYS NOW AND CAN'T GET IT RIGHT. PLEASE
HELP ME.

THANKS
KEITH



"Ragdyer" wrote:

The only way your formula would return the #VALUE! error is if there's
something in K6 that you don't see ... like a <space or a null return < ""
from an existing formula.


=IF(K6="","",IF(K6<25,25,K6-L6))

Post back if you *don't* have a formula in K6 that is returning a null< ""
.

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Keith" wrote in message
...
I am trying use the following formula in cell M6. =IF(K6<25,25,K6-L6) but

it
returns "value!" if K6 is blank. But if K6 is blank I want it to leave

the
cell blank. I have tried everything I can think of. Could you help me

with
this.



  #7   Report Post  
Ragdyer
 
Posts: n/a
Default

Your problem is that your formulas return a mixture of text and numbers.
And then you're depending on these returns to perform calculations.

Some formulas return spaces < " " , and others nulls < "" .

For an accurate evaluation, would you complete your scenario by posting
what's in G33 to H37.

In my testing, I produced some zeroes when fudging those values, which
further complicated the issue.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Keith" wrote in message
...
HERE IS THE WHOLE ROW
A6 DATE
B6 FIRST NAME
C6 LAST NAME
D6 CLIENT'S AGE
E6 ADDRESS
F6 CITY
G6 TIME ON
H6 TIME OFF
I6 TOTAL TIME FORMULA =(H6-G6)*1440
J6 RATE FORMULA =IF(I6=0,"
",IF(I6<=G33,H33,IF(I6<=G34,H34,IF(I6<=G35,H35,IF( I6<=G36,H36,H37)))))
K6 CHARGE FORMULA =IF(J6=" "," ",I6*J6)
L6 SENIOR DISCOUNT FORMULA =IF(D664,K6*0.15,"")
M6 TOTAL DUE FORMULA =IF(K6="","",IF(K6<25,25,K6-L6))

THIS ALL WORKS FINE IF D6 IS 65 OR GREATER, HOWEVER IF NOT IT RETURNS

#VALUE!

I HAVE BEEN WORKING ON THIS FOR DAYS NOW AND CAN'T GET IT RIGHT. PLEASE
HELP ME.

THANKS
KEITH



"Ragdyer" wrote:

The only way your formula would return the #VALUE! error is if there's
something in K6 that you don't see ... like a <space or a null return <

""
from an existing formula.


=IF(K6="","",IF(K6<25,25,K6-L6))

Post back if you *don't* have a formula in K6 that is returning a null<

""
.

--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"Keith" wrote in message
...
I am trying use the following formula in cell M6. =IF(K6<25,25,K6-L6)

but
it
returns "value!" if K6 is blank. But if K6 is blank I want it to

leave
the
cell blank. I have tried everything I can think of. Could you help

me
with
this.




  #8   Report Post  
Keith
 
Posts: n/a
Default

G33 $1.08
G34 $1.02
G35 $0.99
G36 $0.90
G37 $0.82

"Ragdyer" wrote:

Your problem is that your formulas return a mixture of text and numbers.
And then you're depending on these returns to perform calculations.

Some formulas return spaces < " " , and others nulls < "" .

For an accurate evaluation, would you complete your scenario by posting
what's in G33 to H37.

In my testing, I produced some zeroes when fudging those values, which
further complicated the issue.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Keith" wrote in message
...
HERE IS THE WHOLE ROW
A6 DATE
B6 FIRST NAME
C6 LAST NAME
D6 CLIENT'S AGE
E6 ADDRESS
F6 CITY
G6 TIME ON
H6 TIME OFF
I6 TOTAL TIME FORMULA =(H6-G6)*1440
J6 RATE FORMULA =IF(I6=0,"
",IF(I6<=G33,H33,IF(I6<=G34,H34,IF(I6<=G35,H35,IF( I6<=G36,H36,H37)))))
K6 CHARGE FORMULA =IF(J6=" "," ",I6*J6)
L6 SENIOR DISCOUNT FORMULA =IF(D664,K6*0.15,"")
M6 TOTAL DUE FORMULA =IF(K6="","",IF(K6<25,25,K6-L6))

THIS ALL WORKS FINE IF D6 IS 65 OR GREATER, HOWEVER IF NOT IT RETURNS

#VALUE!

I HAVE BEEN WORKING ON THIS FOR DAYS NOW AND CAN'T GET IT RIGHT. PLEASE
HELP ME.

THANKS
KEITH



"Ragdyer" wrote:

The only way your formula would return the #VALUE! error is if there's
something in K6 that you don't see ... like a <space or a null return <

""
from an existing formula.

=IF(K6="","",IF(K6<25,25,K6-L6))

Post back if you *don't* have a formula in K6 that is returning a null<

""
.
--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"Keith" wrote in message
...
I am trying use the following formula in cell M6. =IF(K6<25,25,K6-L6)

but
it
returns "value!" if K6 is blank. But if K6 is blank I want it to

leave
the
cell blank. I have tried everything I can think of. Could you help

me
with
this.




  #9   Report Post  
Ragdyer
 
Posts: n/a
Default

I mentioned G33 *TO* H37.
What do you have in the H's?
Those are the important ones, because you're using those to calculate with.

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Keith" wrote in message
...
G33 $1.08
G34 $1.02
G35 $0.99
G36 $0.90
G37 $0.82

"Ragdyer" wrote:

Your problem is that your formulas return a mixture of text and numbers.
And then you're depending on these returns to perform calculations.

Some formulas return spaces < " " , and others nulls < "" .

For an accurate evaluation, would you complete your scenario by posting
what's in G33 to H37.

In my testing, I produced some zeroes when fudging those values, which
further complicated the issue.
--
Regards,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"Keith" wrote in message
...
HERE IS THE WHOLE ROW
A6 DATE
B6 FIRST NAME
C6 LAST NAME
D6 CLIENT'S AGE
E6 ADDRESS
F6 CITY
G6 TIME ON
H6 TIME OFF
I6 TOTAL TIME FORMULA =(H6-G6)*1440
J6 RATE FORMULA =IF(I6=0,"
",IF(I6<=G33,H33,IF(I6<=G34,H34,IF(I6<=G35,H35,IF( I6<=G36,H36,H37)))))
K6 CHARGE FORMULA =IF(J6=" "," ",I6*J6)
L6 SENIOR DISCOUNT FORMULA =IF(D664,K6*0.15,"")
M6 TOTAL DUE FORMULA =IF(K6="","",IF(K6<25,25,K6-L6))

THIS ALL WORKS FINE IF D6 IS 65 OR GREATER, HOWEVER IF NOT IT RETURNS

#VALUE!

I HAVE BEEN WORKING ON THIS FOR DAYS NOW AND CAN'T GET IT RIGHT.

PLEASE
HELP ME.

THANKS
KEITH



"Ragdyer" wrote:

The only way your formula would return the #VALUE! error is if

there's
something in K6 that you don't see ... like a <space or a null

return <
""
from an existing formula.

=IF(K6="","",IF(K6<25,25,K6-L6))

Post back if you *don't* have a formula in K6 that is returning a

null<
""
.
--
HTH,

RD



--------------------------------------------------------------------------
-
Please keep all correspondence within the NewsGroup, so all may

benefit
!


--------------------------------------------------------------------------
-
"Keith" wrote in message
...
I am trying use the following formula in cell M6.

=IF(K6<25,25,K6-L6)
but
it
returns "value!" if K6 is blank. But if K6 is blank I want it to

leave
the
cell blank. I have tried everything I can think of. Could you

help
me
with
this.





  #10   Report Post  
Keith
 
Posts: n/a
Default

SORRY I POSTED IT WRONG

G33 30 H33 $1.08
G34 45 H34 $1.02
G35 60 H35 $0.99
G36 90 H36 $0.90
G37 120 H37 $0.82


"Ragdyer" wrote:

I mentioned G33 *TO* H37.
What do you have in the H's?
Those are the important ones, because you're using those to calculate with.

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Keith" wrote in message
...
G33 $1.08
G34 $1.02
G35 $0.99
G36 $0.90
G37 $0.82

"Ragdyer" wrote:

Your problem is that your formulas return a mixture of text and numbers.
And then you're depending on these returns to perform calculations.

Some formulas return spaces < " " , and others nulls < "" .

For an accurate evaluation, would you complete your scenario by posting
what's in G33 to H37.

In my testing, I produced some zeroes when fudging those values, which
further complicated the issue.
--
Regards,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"Keith" wrote in message
...
HERE IS THE WHOLE ROW
A6 DATE
B6 FIRST NAME
C6 LAST NAME
D6 CLIENT'S AGE
E6 ADDRESS
F6 CITY
G6 TIME ON
H6 TIME OFF
I6 TOTAL TIME FORMULA =(H6-G6)*1440
J6 RATE FORMULA =IF(I6=0,"
",IF(I6<=G33,H33,IF(I6<=G34,H34,IF(I6<=G35,H35,IF( I6<=G36,H36,H37)))))
K6 CHARGE FORMULA =IF(J6=" "," ",I6*J6)
L6 SENIOR DISCOUNT FORMULA =IF(D664,K6*0.15,"")
M6 TOTAL DUE FORMULA =IF(K6="","",IF(K6<25,25,K6-L6))

THIS ALL WORKS FINE IF D6 IS 65 OR GREATER, HOWEVER IF NOT IT RETURNS
#VALUE!

I HAVE BEEN WORKING ON THIS FOR DAYS NOW AND CAN'T GET IT RIGHT.

PLEASE
HELP ME.

THANKS
KEITH



"Ragdyer" wrote:

The only way your formula would return the #VALUE! error is if

there's
something in K6 that you don't see ... like a <space or a null

return <
""
from an existing formula.

=IF(K6="","",IF(K6<25,25,K6-L6))

Post back if you *don't* have a formula in K6 that is returning a

null<
""
.
--
HTH,

RD



--------------------------------------------------------------------------
-
Please keep all correspondence within the NewsGroup, so all may

benefit
!


--------------------------------------------------------------------------
-
"Keith" wrote in message
...
I am trying use the following formula in cell M6.

=IF(K6<25,25,K6-L6)
but
it
returns "value!" if K6 is blank. But if K6 is blank I want it to
leave
the
cell blank. I have tried everything I can think of. Could you

help
me
with
this.








  #11   Report Post  
Ragdyer
 
Posts: n/a
Default

OK, try these formulas.

I added some error trapping to some of them.

I6
=AND(G60,H60)*(H6-G6)*1440

J6
=IF(I6=0,"",IF(I6<=G33,H33,VLOOKUP(I6,G33:H37,2)))

K6
=IF(J6="","",I6*J6)

L6
=IF(AND(D664,K6<""),K6*0.15,0)

M6
=IF(K6="","",IF(K6<25,25,K6-L6))

I believe these will produce what you're looking for.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------


"Keith" wrote in message
...
SORRY I POSTED IT WRONG

G33 30 H33 $1.08
G34 45 H34 $1.02
G35 60 H35 $0.99
G36 90 H36 $0.90
G37 120 H37 $0.82


"Ragdyer" wrote:

I mentioned G33 *TO* H37.
What do you have in the H's?
Those are the important ones, because you're using those to calculate

with.

--
Regards,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"Keith" wrote in message
...
G33 $1.08
G34 $1.02
G35 $0.99
G36 $0.90
G37 $0.82

"Ragdyer" wrote:

Your problem is that your formulas return a mixture of text and

numbers.
And then you're depending on these returns to perform calculations.

Some formulas return spaces < " " , and others nulls < "" .

For an accurate evaluation, would you complete your scenario by

posting
what's in G33 to H37.

In my testing, I produced some zeroes when fudging those values,

which
further complicated the issue.
--
Regards,

RD



--------------------------------------------------------------------------
-
Please keep all correspondence within the NewsGroup, so all may

benefit
!


--------------------------------------------------------------------------
-
"Keith" wrote in message
...
HERE IS THE WHOLE ROW
A6 DATE
B6 FIRST NAME
C6 LAST NAME
D6 CLIENT'S AGE
E6 ADDRESS
F6 CITY
G6 TIME ON
H6 TIME OFF
I6 TOTAL TIME FORMULA =(H6-G6)*1440
J6 RATE FORMULA =IF(I6=0,"

",IF(I6<=G33,H33,IF(I6<=G34,H34,IF(I6<=G35,H35,IF( I6<=G36,H36,H37)))))
K6 CHARGE FORMULA =IF(J6=" "," ",I6*J6)
L6 SENIOR DISCOUNT FORMULA =IF(D664,K6*0.15,"")
M6 TOTAL DUE FORMULA =IF(K6="","",IF(K6<25,25,K6-L6))

THIS ALL WORKS FINE IF D6 IS 65 OR GREATER, HOWEVER IF NOT IT

RETURNS
#VALUE!

I HAVE BEEN WORKING ON THIS FOR DAYS NOW AND CAN'T GET IT RIGHT.

PLEASE
HELP ME.

THANKS
KEITH



"Ragdyer" wrote:

The only way your formula would return the #VALUE! error is if

there's
something in K6 that you don't see ... like a <space or a null

return <
""
from an existing formula.

=IF(K6="","",IF(K6<25,25,K6-L6))

Post back if you *don't* have a formula in K6 that is returning

a
null<
""
.
--
HTH,

RD




--------------------------------------------------------------------------
-
Please keep all correspondence within the NewsGroup, so all may

benefit
!



--------------------------------------------------------------------------
-
"Keith" wrote in message
...
I am trying use the following formula in cell M6.

=IF(K6<25,25,K6-L6)
but
it
returns "value!" if K6 is blank. But if K6 is blank I want it

to
leave
the
cell blank. I have tried everything I can think of. Could

you
help
me
with
this.







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
Trouble with formula Kristajea Excel Worksheet Functions 4 May 20th 05 12:28 AM
Trouble with Syntax - IF formula Bert via OfficeKB.com New Users to Excel 1 April 8th 05 01:00 AM
Howdo U copy a formula down a column, that uses data in another w. Need Help pasting a formula Excel Worksheet Functions 1 February 25th 05 06:04 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
Formula or not? Alan Excel Worksheet Functions 2 February 20th 05 03:26 PM


All times are GMT +1. The time now is 12:43 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"