Help!

IF Function

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions RSS
Next:  How to remove non-exist values in pull-down list ..  
Author Message
willemeulen
External


Since: May 20, 2009
Posts: 1



PostPosted: Wed May 20, 2009 5:10 am    Post subject: IF Function
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

Another IF challange.

I have the following formula (shematic):

A + B + 0,57C + D - 0,5r - 2,57d

Got the formula working nicely, even with the follwing incorporated

If C >= 400 add 2d

This is what it looks like:

=Sheet1!M3+Sheet1!N3+0.57*Sheet1!O3+Sheet1!P3-0.5*INDEX(Sheet3!$A$4:$K$6,MATCH(Sheet1!E3,Sheet3!$A$4:$A$6,0),MATCH(Sheet1!F3,Sheet3!$A$4:$K$4,0))-2.57*Sheet1!F3+IF(Sheet1!O3>=400,2*Sheet1!F3,0)

Yeah! But I want to incorparate another IF or other solution for the
following:

Value C >= 4r

IF(Sheet1!O3>=4*"r",value_if_true,"invalid C")

How do I tell excel, when the If is valid to continue with the function
above, when not true it will write invalid C (or whatever fits the
cell)

Thanks


--
willemeulen

Blink1 *Willem van der Meulen* BSc Soil & Water Eng (Netherlands)
------------------------------------------------------------------------
willemeulen's Profile: http://www.thecodecage.com/forumz/member.php?userid=285
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=98322
Back to top
David Biddulph
External


Since: Feb 24, 2007
Posts: 1286



PostPosted: Wed May 20, 2009 6:10 am    Post subject: Re: IF Function [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

=IF(Sheet1!O3>=4*"r",Sheet1!M3+Sheet1!N3+0.57*Sheet1!O3+Sheet1!P3-0.5*INDEX(Sheet3!$A$4:$K$6,MATCH(Sheet1!E3,Sheet3!$A$4:$A$6,0),MATCH(Sheet1!F3,Sheet3!$A$4:$K$4,0))-2.57*Sheet1!F3+IF(Sheet1!O3>=400,2*Sheet1!F3,0),"invalid
C")

but of course "r" is text so 4*"r" is zero.

If the r is the r you had earlier,

=IF(Sheet1!O3>=4*INDEX(Sheet3!$A$4:$K$6,MATCH(Sheet1!E3,Sheet3!$A$4:$A$6,0),MATCH(Sheet1!F3,Sheet3!$A$4:$K$4,0)),Sheet1!M3+Sheet1!N3+0.57*Sheet1!O3+Sheet1!P3-0.5*INDEX(Sheet3!$A$4:$K$6,MATCH(Sheet1!E3,Sheet3!$A$4:$A$6,0),MATCH(Sheet1!F3,Sheet3!$A$4:$K$4,0))-2.57*Sheet1!F3+IF(Sheet1!O3>=400,2*Sheet1!F3,0),"invalid
C")
--
David Biddulph

"willemeulen" <willemeulen.3sh7y7.TakeThisOut@thecodecage.com> wrote in message
news:willemeulen.3sh7y7@thecodecage.com...
>
> Another IF challange.
>
> I have the following formula (shematic):
>
> A + B + 0,57C + D - 0,5r - 2,57d
>
> Got the formula working nicely, even with the follwing incorporated
>
> If C >= 400 add 2d
>
> This is what it looks like:
>
> =Sheet1!M3+Sheet1!N3+0.57*Sheet1!O3+Sheet1!P3-0.5*INDEX(Sheet3!$A$4:$K$6,MATCH(Sheet1!E3,Sheet3!$A$4:$A$6,0),MATCH(Sheet1!F3,Sheet3!$A$4:$K$4,0))-2.57*Sheet1!F3+IF(Sheet1!O3>=400,2*Sheet1!F3,0)
>
> Yeah! But I want to incorparate another IF or other solution for the
> following:
>
> Value C >= 4r
>
> IF(Sheet1!O3>=4*"r",value_if_true,"invalid C")
>
> How do I tell excel, when the If is valid to continue with the function
> above, when not true it will write invalid C (or whatever fits the
> cell)
>
> Thanks
>
>
> --
> willemeulen
>
> Blink1 *Willem van der Meulen* BSc Soil & Water Eng (Netherlands)
> ------------------------------------------------------------------------
> willemeulen's Profile:
> http://www.thecodecage.com/forumz/member.php?userid=285
> View this thread: http://www.thecodecage.com/forumz/showthread.php?t=98322
>
Back to top
willemeulen
External


Since: May 20, 2009
Posts: 1



PostPosted: Wed May 20, 2009 7:10 am    Post subject: Re: IF Function [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You where right with the r was the Index...... just left it out to make
it a bit more readable. Workes a dream!

Thanks Dave


--
willemeulen

Blink1 *Willem van der Meulen* BSc Soil & Water Eng (Netherlands)
------------------------------------------------------------------------
willemeulen's Profile: http://www.thecodecage.com/forumz/member.php?userid=285
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=98322
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum