Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Haz Haz is offline
external usenet poster
 
Posts: 46
Default If function multiple Criteria


Hi,

I require an if function that could do the below. I have tried an if
function but can only gat it to work for the first 2 but not for all.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 C25=X7.50
C15=5.50 C25=X7.50 but show as a minus figure.

Any help would be appreciated.
Thanks
Haz
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default If function multiple Criteria

Not sure what the X7.50 results are supposed to be, so I will leave that up
to you.
C25: =IF(OR(C15=0,C15=5.5),0,IF(C15<5.5,X7.50,-X7.50))
--
** John C **


"Haz" wrote:


Hi,

I require an if function that could do the below. I have tried an if
function but can only gat it to work for the first 2 but not for all.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 C25=X7.50
C15=5.50 C25=X7.50 but show as a minus figure.

Any help would be appreciated.
Thanks
Haz

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default If function multiple Criteria

I presume you want the IF statement in C25 to return the values there
depending on the values in C15. If so, try it this way:

=IF(OR(C15=0,C15=5.5),0,IF(C15<5.5,"x7.5","-x7.5"))

If your "X7.50" is meant to mean multiply C15 by 7.5, then you will
need this instead:

=IF(OR(C15=0,C15=5.5),0,IF(C15<5.5,C15*7.5,-C15*7.5))

Hope this helps.

Pete

On Oct 29, 3:02*pm, Haz wrote:
Hi,

I require an if function that could do the below. I have tried an if
function but can only gat it to work for *the first 2 but not for all.

C15=0 * * * * *C25 =0
C15= 5.50 * *C25=0
C15=<5.50 * C25=X7.50
C15=5.50 * C25=X7.50 * *but show as a minus figure.

Any help would be appreciated.
Thanks
Haz


  #4   Report Post  
Posted to microsoft.public.excel.misc
Haz Haz is offline
external usenet poster
 
Posts: 46
Default If function multiple Criteria

thanks for the reply, sorry i wasn't clear, but C25 is dependent on what
<5.50 is for example if 5 then a different of .5 which equates to half an
hour and should be 3.75. i have shown this again below hope this helps.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 x7.50 C25=

for example if 5 X7.50 C25=3.75 (7.50/2)
C15=5.50 x7.50 C25= -3.75 but show as a minus figure.

for example if 6 x7.50 C25=-3.75
"John C" wrote:

Not sure what the X7.50 results are supposed to be, so I will leave that up
to you.
C25: =IF(OR(C15=0,C15=5.5),0,IF(C15<5.5,X7.50,-X7.50))
--
** John C **


"Haz" wrote:


Hi,

I require an if function that could do the below. I have tried an if
function but can only gat it to work for the first 2 but not for all.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 C25=X7.50 minus 7.50


C15=5.50 C25=X7.50 but show as a minus figure.

Any help would be appreciated.
Thanks
Haz

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default If function multiple Criteria

I 'think' this may give you the result you are seeking. I am assuming that in
the examples you gave, that the reason both were divided by 2 (or multiplied
by 1/2) is because they were 0.5 off your base of 5.5.
Therefore, try the following formula:
C25: =IF(OR(C15=0,C15=5.5),0,(C15-5.5)*7.5)
--
** John C **


"Haz" wrote:

thanks for the reply, sorry i wasn't clear, but C25 is dependent on what
<5.50 is for example if 5 then a different of .5 which equates to half an
hour and should be 3.75. i have shown this again below hope this helps.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 x7.50 C25=

for example if 5 X7.50 C25=3.75 (7.50/2)
C15=5.50 x7.50 C25= -3.75 but show as a minus figure.

for example if 6 x7.50 C25=-3.75
"John C" wrote:

Not sure what the X7.50 results are supposed to be, so I will leave that up
to you.
C25: =IF(OR(C15=0,C15=5.5),0,IF(C15<5.5,X7.50,-X7.50))
--
** John C **


"Haz" wrote:


Hi,

I require an if function that could do the below. I have tried an if
function but can only gat it to work for the first 2 but not for all.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 C25=X7.50 minus 7.50


C15=5.50 C25=X7.50 but show as a minus figure.

Any help would be appreciated.
Thanks
Haz



  #6   Report Post  
Posted to microsoft.public.excel.misc
Haz Haz is offline
external usenet poster
 
Posts: 46
Default If function multiple Criteria

Thanks John this is exactly it, however when they are below base of 5.50 i
want a positive result and a negative when above base.

Thanks Again
Haz

"John C" wrote:

I 'think' this may give you the result you are seeking. I am assuming that in
the examples you gave, that the reason both were divided by 2 (or multiplied
by 1/2) is because they were 0.5 off your base of 5.5.
Therefore, try the following formula:
C25: =IF(OR(C15=0,C15=5.5),0,(C15-5.5)*7.5)
--
** John C **


"Haz" wrote:

thanks for the reply, sorry i wasn't clear, but C25 is dependent on what
<5.50 is for example if 5 then a different of .5 which equates to half an
hour and should be 3.75. i have shown this again below hope this helps.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 x7.50 C25=

for example if 5 X7.50 C25=3.75 (7.50/2)
C15=5.50 x7.50 C25= -3.75 but show as a minus figure.

for example if 6 x7.50 C25=-3.75
"John C" wrote:

Not sure what the X7.50 results are supposed to be, so I will leave that up
to you.
C25: =IF(OR(C15=0,C15=5.5),0,IF(C15<5.5,X7.50,-X7.50))
--
** John C **


"Haz" wrote:


Hi,

I require an if function that could do the below. I have tried an if
function but can only gat it to work for the first 2 but not for all.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 C25=X7.50 minus 7.50


C15=5.50 C25=X7.50 but show as a minus figure.

Any help would be appreciated.
Thanks
Haz

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default If function multiple Criteria

Misunderstanding. Just reverse that part of the formula:
Change C15-5.5 to 5.5-C15.
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"Haz" wrote:

Thanks John this is exactly it, however when they are below base of 5.50 i
want a positive result and a negative when above base.

Thanks Again
Haz

"John C" wrote:

I 'think' this may give you the result you are seeking. I am assuming that in
the examples you gave, that the reason both were divided by 2 (or multiplied
by 1/2) is because they were 0.5 off your base of 5.5.
Therefore, try the following formula:
C25: =IF(OR(C15=0,C15=5.5),0,(C15-5.5)*7.5)
--
** John C **


"Haz" wrote:

thanks for the reply, sorry i wasn't clear, but C25 is dependent on what
<5.50 is for example if 5 then a different of .5 which equates to half an
hour and should be 3.75. i have shown this again below hope this helps.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 x7.50 C25=
for example if 5 X7.50 C25=3.75 (7.50/2)
C15=5.50 x7.50 C25= -3.75 but show as a minus figure.
for example if 6 x7.50 C25=-3.75
"John C" wrote:

Not sure what the X7.50 results are supposed to be, so I will leave that up
to you.
C25: =IF(OR(C15=0,C15=5.5),0,IF(C15<5.5,X7.50,-X7.50))
--
** John C **


"Haz" wrote:


Hi,

I require an if function that could do the below. I have tried an if
function but can only gat it to work for the first 2 but not for all.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 C25=X7.50 minus 7.50

C15=5.50 C25=X7.50 but show as a minus figure.

Any help would be appreciated.
Thanks
Haz

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default If function multiple Criteria

In reality, your formula could be shortened even more, and with no IF
statements.
C25: =(5.5-C15)*7.5*(C150) ... This includes that C15 will never be below 0.
--
** John C **


"Haz" wrote:

Thanks John this is exactly it, however when they are below base of 5.50 i
want a positive result and a negative when above base.

Thanks Again
Haz

"John C" wrote:

I 'think' this may give you the result you are seeking. I am assuming that in
the examples you gave, that the reason both were divided by 2 (or multiplied
by 1/2) is because they were 0.5 off your base of 5.5.
Therefore, try the following formula:
C25: =IF(OR(C15=0,C15=5.5),0,(C15-5.5)*7.5)
--
** John C **


"Haz" wrote:

thanks for the reply, sorry i wasn't clear, but C25 is dependent on what
<5.50 is for example if 5 then a different of .5 which equates to half an
hour and should be 3.75. i have shown this again below hope this helps.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 x7.50 C25=
for example if 5 X7.50 C25=3.75 (7.50/2)
C15=5.50 x7.50 C25= -3.75 but show as a minus figure.
for example if 6 x7.50 C25=-3.75
"John C" wrote:

Not sure what the X7.50 results are supposed to be, so I will leave that up
to you.
C25: =IF(OR(C15=0,C15=5.5),0,IF(C15<5.5,X7.50,-X7.50))
--
** John C **


"Haz" wrote:


Hi,

I require an if function that could do the below. I have tried an if
function but can only gat it to work for the first 2 but not for all.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 C25=X7.50 minus 7.50

C15=5.50 C25=X7.50 but show as a minus figure.

Any help would be appreciated.
Thanks
Haz

  #9   Report Post  
Posted to microsoft.public.excel.misc
Haz Haz is offline
external usenet poster
 
Posts: 46
Default If function multiple Criteria

Thanks that works perfectly now.

"John C" wrote:

Misunderstanding. Just reverse that part of the formula:
Change C15-5.5 to 5.5-C15.
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"Haz" wrote:

Thanks John this is exactly it, however when they are below base of 5.50 i
want a positive result and a negative when above base.

Thanks Again
Haz

"John C" wrote:

I 'think' this may give you the result you are seeking. I am assuming that in
the examples you gave, that the reason both were divided by 2 (or multiplied
by 1/2) is because they were 0.5 off your base of 5.5.
Therefore, try the following formula:
C25: =IF(OR(C15=0,C15=5.5),0,(C15-5.5)*7.5)
--
** John C **


"Haz" wrote:

thanks for the reply, sorry i wasn't clear, but C25 is dependent on what
<5.50 is for example if 5 then a different of .5 which equates to half an
hour and should be 3.75. i have shown this again below hope this helps.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 x7.50 C25=
for example if 5 X7.50 C25=3.75 (7.50/2)
C15=5.50 x7.50 C25= -3.75 but show as a minus figure.
for example if 6 x7.50 C25=-3.75
"John C" wrote:

Not sure what the X7.50 results are supposed to be, so I will leave that up
to you.
C25: =IF(OR(C15=0,C15=5.5),0,IF(C15<5.5,X7.50,-X7.50))
--
** John C **


"Haz" wrote:


Hi,

I require an if function that could do the below. I have tried an if
function but can only gat it to work for the first 2 but not for all.

C15=0 C25 =0
C15= 5.50 C25=0
C15=<5.50 C25=X7.50 minus 7.50

C15=5.50 C25=X7.50 but show as a minus figure.

Any help would be appreciated.
Thanks
Haz

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
IF Function with Multiple Criteria bethanon Excel Worksheet Functions 2 October 20th 08 05:42 PM
Multiple results from multiple criteria using IF function David Platt Excel Discussion (Misc queries) 2 January 15th 07 10:19 AM
Multiple Sheet, Multiple Criteria Look-Up Function Help Dan Oakes Excel Worksheet Functions 5 December 29th 06 01:37 PM
Look up function for multiple criteria DEE Excel Worksheet Functions 2 November 21st 06 07:00 PM
Large function with multiple criteria Adeline Excel Discussion (Misc queries) 2 September 8th 06 05:33 PM


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