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


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/sh...ad.php?t=98322

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

=IF(Sheet1!O3=4*"r",Sheet1!M3+Sheet1!N3+0.57*Shee t1!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),"i nvalid
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(Shee t1!E3,Sheet3!$A$4:$A$6,0),MATCH(Sheet1!F3,Sheet3!$ A$4:$K$4,0)),Sheet1!M3+Sheet1!N3+0.57*Sheet1!O3+Sh eet1!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),"i nvalid
C")
--
David Biddulph

"willemeulen" wrote in message
...

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/sh...ad.php?t=98322



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF Function


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/sh...ad.php?t=98322

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
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


All times are GMT +1. The time now is 12:45 AM.

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"