#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Challenge

=IF(BG229=0,IF(BE229=3,AK229*(0+Input!$G$10),IF(BE 229=4,AK229*(0+Input!$G$11),
IF(BE229=5,AK229*(0+Input!$G$13),IF(BE229=6,AK229* (0+Input!$G$14),IF(BE229=7,
AK229*(0+Input!$G$15),0))))))

This formula returns a "FALSE" statement if not true. Anyway to change the
formula to return a zero if FALSE. THANKS...

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Challenge

OwenGiryluk wrote:
=IF(BG229=0,IF(BE229=3,AK229*(0+Input!$G$10),IF(BE 229=4,AK229*(0+Input!$G$11),
IF(BE229=5,AK229*(0+Input!$G$13),IF(BE229=6,AK229* (0+Input!$G$14),IF(BE229=7,
AK229*(0+Input!$G$15),0))))))

This formula returns a "FALSE" statement if not true. Anyway to change the
formula to return a zero if FALSE. THANKS...


Just add -- in front, like this:

=--(IF(BG229=0,IF(BE229=3,AK229*(0+Input!$G$10),IF(BE 229=4,AK229*(0+Input!$G$11),
IF(BE229=5,AK229*(0+Input!$G$13),IF(BE229=6,AK229* (0+Input!$G$14),IF(BE229=7,
AK229*(0+Input!$G$15),0)))))))

Beege
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Challenge

Put a double unary minus in front of it, i.e.:

=--IF( etc

Hope this helps.

Pete

On Oct 1, 7:34 pm, "OwenGiryluk" <u37865@uwe wrote:
=IF(BG229=0,IF(BE229=3,AK229*(0+Input!$G$10),IF(BE 229=4,AK229*(0+Input!$G$1*1),
IF(BE229=5,AK229*(0+Input!$G$13),IF(BE229=6,AK229* (0+Input!$G$14),IF(BE229=*7,
AK229*(0+Input!$G$15),0))))))

This formula returns a "FALSE" statement if not true. Anyway to change the
formula to return a zero if FALSE. THANKS...



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Challenge


=IF(BG229=0,IF(BE229=3,AK229*(0+INput!$G$10),IF(BE 229=4,AK229*(0+INput!$G$11),IF(BE229=5,AK229*(0+IN put!$G$13),IF(BE229=6,AK229*(0+INput!$G$14),IF(BE2 29=7,AK229*(0+INput!$G$15)))))),0)

Vaya con Dios,
Chuck, CABGx3



"OwenGiryluk" wrote:

=IF(BG229=0,IF(BE229=3,AK229*(0+Input!$G$10),IF(BE 229=4,AK229*(0+Input!$G$11),
IF(BE229=5,AK229*(0+Input!$G$13),IF(BE229=6,AK229* (0+Input!$G$14),IF(BE229=7,
AK229*(0+Input!$G$15),0))))))

This formula returns a "FALSE" statement if not true. Anyway to change the
formula to return a zero if FALSE. THANKS...


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Challenge

Try this:

=IF(SUM(COUNTIF(BE229,{3,4,5,6,7})),AK229*CHOOSE(B E229-2,Input!$G$10,Input!$G$11,Input!$G$13,Input!$G$14, Input!$G$15),0)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"OwenGiryluk" <u37865@uwe wrote in message news:790d3d9f06f38@uwe...
=IF(BG229=0,IF(BE229=3,AK229*(0+Input!$G$10),IF(BE 229=4,AK229*(0+Input!$G$11),
IF(BE229=5,AK229*(0+Input!$G$13),IF(BE229=6,AK229* (0+Input!$G$14),IF(BE229=7,
AK229*(0+Input!$G$15),0))))))

This formula returns a "FALSE" statement if not true. Anyway to change
the
formula to return a zero if FALSE. THANKS...





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Challenge

Thanks for your help!

Beege wrote:
=IF(BG229=0,IF(BE229=3,AK229*(0+Input!$G$10),IF(BE 229=4,AK229*(0+Input!$G$11),
IF(BE229=5,AK229*(0+Input!$G$13),IF(BE229=6,AK229* (0+Input!$G$14),IF(BE229=7,
AK229*(0+Input!$G$15),0))))))

This formula returns a "FALSE" statement if not true. Anyway to change the
formula to return a zero if FALSE. THANKS...


Just add -- in front, like this:

=--(IF(BG229=0,IF(BE229=3,AK229*(0+Input!$G$10),IF(BE 229=4,AK229*(0+Input!$G$11),
IF(BE229=5,AK229*(0+Input!$G$13),IF(BE229=6,AK229 *(0+Input!$G$14),IF(BE229=7,
AK229*(0+Input!$G$15),0)))))))

Beege


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Challenge

Darn...I missed a test...

Try this:
=IF(AND(BG229=0,SUM(COUNTIF(BE229,{3,4,5,6,7}))),A K229*CHOOSE(BE229-2,Input!$G$10,Input!$G$11,Input!$G$13,Input!$G$14, Input!$G$15),0)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Ron Coderre" wrote in message
...
Try this:

=IF(SUM(COUNTIF(BE229,{3,4,5,6,7})),AK229*CHOOSE(B E229-2,Input!$G$10,Input!$G$11,Input!$G$13,Input!$G$14, Input!$G$15),0)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"OwenGiryluk" <u37865@uwe wrote in message news:790d3d9f06f38@uwe...
=IF(BG229=0,IF(BE229=3,AK229*(0+Input!$G$10),IF(BE 229=4,AK229*(0+Input!$G$11),
IF(BE229=5,AK229*(0+Input!$G$13),IF(BE229=6,AK229* (0+Input!$G$14),IF(BE229=7,
AK229*(0+Input!$G$15),0))))))

This formula returns a "FALSE" statement if not true. Anyway to change
the
formula to return a zero if FALSE. THANKS...





  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Challenge

On Oct 1, 11:34 am, "OwenGiryluk" <u37865@uwe wrote:
=IF(BG229=0,IF(BE229=3,AK229*(0+Input!$G$10),IF(BE 229=4,AK229*(0+Input!$G$1*1),
IF(BE229=5,AK229*(0+Input!$G$13),IF(BE229=6,AK229* (0+Input!$G$14),IF(BE229=*7,
AK229*(0+Input!$G$15),0))))))

This formula returns a "FALSE" statement if not true. Anyway to change the
formula to return a zero if FALSE.


Insert ",0" before the right-most parenthesis. It returns FALSE
because you do handle the condition where BG229<0.

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default Challenge

"OwenGiryluk" <u37865@uwe wrote...
=IF(BG229=0,
IF(BE229=3,AK229*(0+Input!$G$10),
IF(BE229=4,AK229*(0+Input!$G$11),
IF(BE229=5,AK229*(0+Input!$G$13),
IF(BE229=6,AK229*(0+Input!$G$14),
IF(BE229=7,AK229*(0+Input!$G$15),
0))))))

This formula returns a "FALSE" statement if not true. Anyway to change
the formula to return a zero if FALSE. THANKS...


If that were all you really want to do, then rearrange it.

=IF(BG229<0,0,
IF(BE229=3,AK229*(0+Input!$G$10),
IF(BE229=4,AK229*(0+Input!$G$11),
IF(BE229=5,AK229*(0+Input!$G$13),
IF(BE229=6,AK229*(0+Input!$G$14),
IF(BE229=7,AK229*(0+Input!$G$15),
0))))))

However, the '0+' bits do nothing. The multiplications would coerce
the Input!G# cells to numbers, so you should simplify to

=IF(BG229<0,0,
IF(BE229=3,AK229*Input!$G$10,
IF(BE229=4,AK229*Input!$G$11,
IF(BE229=5,AK229*Input!$G$13,
IF(BE229=6,AK229*Input!$G$14,
IF(BE229=7,AK229*Input!$G$15,
0))))))

But this looks like a lookup. You could simplify this by using a
lookup function.

=IF(OR(BG229<0,AND(BE229<{3;4;5;6;7})),0,
AK229*LOOKUP(BE229,{3;4;4.5;5;6;7},Input!$G$10:$G$ 15))

The 4.5 value in the second array constant corresponds to Input!G12,
which your original formula skips.



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default Challenge

CLR wrote...
=IF(BG229=0,IF(BE229=3,AK229*(0+INput!$G$10),
IF(BE229=4,AK229*(0+INput!$G$11),IF(BE229=5,AK229 *(0+INput!$G$13),
IF(BE229=6,AK229*(0+INput!$G$14),IF(BE229=7,AK229 *(0+INput!$G$15)
))))),0)

....

Don't like testing?

This will return 0 when BG229 < 0, but when BG229 = 0 but BE229 <
any of 3, 4, 5, 6 or 7, it'll return FALSE. The OP's own ',0' wasn't
misplaced. It just wasn't sufficient.

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
Shortcut Key --- A Challenge Deepak Excel Discussion (Misc queries) 1 December 9th 06 02:02 AM
A Challenge jimbob Excel Discussion (Misc queries) 17 April 1st 06 10:37 PM
Algorithm Challenge Lowkey Excel Worksheet Functions 4 July 20th 05 06:40 PM
A Challenge Jazzer Excel Worksheet Functions 3 July 8th 05 05:08 PM
Who is up for a challenge? Jambruins Excel Discussion (Misc queries) 2 April 12th 05 08:23 PM


All times are GMT +1. The time now is 06:42 PM.

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

About Us

"It's about Microsoft Excel"