#1   Report Post  
SR
 
Posts: n/a
Default Multi functions

Going nuts trying to make this equation fit all possible situations - I'd
like an equation to put in G that would look at mutliple IFs/ANDs:

IF B="in house" and C=Jack then E x .05
IF B="in house" and C=Jill then E x .05
IF B="in house" and C=(no name) then E x .06
IF B=anything other than "in house" and C=Jack then E x .01
IF B= anything other than "in house" and C=Jill then E x .01
IF B=anything other than "in house" and C=no name then E x .02

Is this possible to do in one equation? All suggestions welcome. Thank you.
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=IF(B1="in
house",IF(OR(C1="jack",C1="jill"),0.05,ISBLANK(C1) *0.06),IF(OR(C1="jack",C1="jill"),0.01,ISBLANK(C1) *0.02))
will give you either 0.05,0.06,0.01 or 0.02 as output based on the
combinatiion of data on cells B1 and c1



"SR" wrote in message
...
Going nuts trying to make this equation fit all possible situations - I'd
like an equation to put in G that would look at mutliple IFs/ANDs:

IF B="in house" and C=Jack then E x .05
IF B="in house" and C=Jill then E x .05
IF B="in house" and C=(no name) then E x .06
IF B=anything other than "in house" and C=Jack then E x .01
IF B= anything other than "in house" and C=Jill then E x .01
IF B=anything other than "in house" and C=no name then E x .02

Is this possible to do in one equation? All suggestions welcome. Thank
you.



  #3   Report Post  
KL
 
Posts: n/a
Default

You could try something like this:

=IF(AND(B1="in house",C1="Jack"), E1*0.05,IF(AND(B1="in
house",C1="Jill"),E1*0.05,IF(AND(B1="in house",C1=""),E1*0.06,IF(AND(B1<"in
house",C1="Jack"),E1*0.01,IF(AND(B1<"in
house",C1="Jill"),E1*0.01,IF(AND(B1<"in house",C1=""),E1*0.02,""))))))

Regards,
KL

"SR" wrote in message
...
Going nuts trying to make this equation fit all possible situations - I'd
like an equation to put in G that would look at mutliple IFs/ANDs:

IF B="in house" and C=Jack then E x .05
IF B="in house" and C=Jill then E x .05
IF B="in house" and C=(no name) then E x .06
IF B=anything other than "in house" and C=Jack then E x .01
IF B= anything other than "in house" and C=Jill then E x .01
IF B=anything other than "in house" and C=no name then E x .02

Is this possible to do in one equation? All suggestions welcome. Thank
you.



  #4   Report Post  
SR
 
Posts: n/a
Default

I apologize for not thanking you earlier for your quick response. I just
found this discussion group of excel's and I am so impressed by people's
willingness to help others. So, I thank you for your time. Unfortunately, I
could not get this to work. I'm sure it is my lack of experience with
compound and complicated functions. I will continue to study your suggestion
and learn what I can from it.

"N Harkawat" wrote:

=IF(B1="in
house",IF(OR(C1="jack",C1="jill"),0.05,ISBLANK(C1) *0.06),IF(OR(C1="jack",C1="jill"),0.01,ISBLANK(C1) *0.02))
will give you either 0.05,0.06,0.01 or 0.02 as output based on the
combinatiion of data on cells B1 and c1



"SR" wrote in message
...
Going nuts trying to make this equation fit all possible situations - I'd
like an equation to put in G that would look at mutliple IFs/ANDs:

IF B="in house" and C=Jack then E x .05
IF B="in house" and C=Jill then E x .05
IF B="in house" and C=(no name) then E x .06
IF B=anything other than "in house" and C=Jack then E x .01
IF B= anything other than "in house" and C=Jill then E x .01
IF B=anything other than "in house" and C=no name then E x .02

Is this possible to do in one equation? All suggestions welcome. Thank
you.




  #5   Report Post  
SR
 
Posts: n/a
Default

I apologize for not thanking you earlier for your quick response. As I just
explained to "N Harkawat" the other person who responded to my plea, I am so
impressed by people's willingness to help others. So, I thank you for your
time. Unfortunately, I could not get this to work. I'm sure it is my lack
of experience with compound and complicated functions. I will continue to
study your suggestion and learn what I can from it. Again, I thank you very
much.

"KL" wrote:

You could try something like this:

=IF(AND(B1="in house",C1="Jack"), E1*0.05,IF(AND(B1="in
house",C1="Jill"),E1*0.05,IF(AND(B1="in house",C1=""),E1*0.06,IF(AND(B1<"in
house",C1="Jack"),E1*0.01,IF(AND(B1<"in
house",C1="Jill"),E1*0.01,IF(AND(B1<"in house",C1=""),E1*0.02,""))))))

Regards,
KL

"SR" wrote in message
...
Going nuts trying to make this equation fit all possible situations - I'd
like an equation to put in G that would look at mutliple IFs/ANDs:

IF B="in house" and C=Jack then E x .05
IF B="in house" and C=Jill then E x .05
IF B="in house" and C=(no name) then E x .06
IF B=anything other than "in house" and C=Jack then E x .01
IF B= anything other than "in house" and C=Jill then E x .01
IF B=anything other than "in house" and C=no name then E x .02

Is this possible to do in one equation? All suggestions welcome. Thank
you.






  #6   Report Post  
KL
 
Posts: n/a
Default

Hi SR,

So do you want to leave it there, or do you want to make it work? :-)
If you explain what you mean by "I could not get this to work" we may try
and resolve it.

Regards,
KL


"SR" wrote in message
...
I apologize for not thanking you earlier for your quick response. As I
just
explained to "N Harkawat" the other person who responded to my plea, I am
so
impressed by people's willingness to help others. So, I thank you for
your
time. Unfortunately, I could not get this to work. I'm sure it is my
lack
of experience with compound and complicated functions. I will continue to
study your suggestion and learn what I can from it. Again, I thank you
very
much.

"KL" wrote:

You could try something like this:

=IF(AND(B1="in house",C1="Jack"), E1*0.05,IF(AND(B1="in
house",C1="Jill"),E1*0.05,IF(AND(B1="in
house",C1=""),E1*0.06,IF(AND(B1<"in
house",C1="Jack"),E1*0.01,IF(AND(B1<"in
house",C1="Jill"),E1*0.01,IF(AND(B1<"in house",C1=""),E1*0.02,""))))))

Regards,
KL

"SR" wrote in message
...
Going nuts trying to make this equation fit all possible situations -
I'd
like an equation to put in G that would look at mutliple IFs/ANDs:

IF B="in house" and C=Jack then E x .05
IF B="in house" and C=Jill then E x .05
IF B="in house" and C=(no name) then E x .06
IF B=anything other than "in house" and C=Jack then E x .01
IF B= anything other than "in house" and C=Jill then E x .01
IF B=anything other than "in house" and C=no name then E x .02

Is this possible to do in one equation? All suggestions welcome. Thank
you.






  #7   Report Post  
Sandy Mann
 
Posts: n/a
Default

A bit more complicated so if you had trouble with KL's formula perhaps you
would be better letting him/her talk you through it but if can be shortened
to:

=IF(AND(B1="In
House",OR(C1={"Jack","Jill",""})),E1*(0.05+(C1="")/100),IF(AND(B1<"In
House",OR(C1={"Jack","Jill",""})),E1*(0.01+(C1="")/100),"Wrong Data"))

The "Wrong Data" was added in case of typo's in the raw data etc.


--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"SR" wrote in message
...
I apologize for not thanking you earlier for your quick response. As I

just
explained to "N Harkawat" the other person who responded to my plea, I am

so
impressed by people's willingness to help others. So, I thank you for

your
time. Unfortunately, I could not get this to work. I'm sure it is my

lack
of experience with compound and complicated functions. I will continue to
study your suggestion and learn what I can from it. Again, I thank you

very
much.

"KL" wrote:

You could try something like this:

=IF(AND(B1="in house",C1="Jack"), E1*0.05,IF(AND(B1="in
house",C1="Jill"),E1*0.05,IF(AND(B1="in

house",C1=""),E1*0.06,IF(AND(B1<"in
house",C1="Jack"),E1*0.01,IF(AND(B1<"in
house",C1="Jill"),E1*0.01,IF(AND(B1<"in house",C1=""),E1*0.02,""))))))

Regards,
KL

"SR" wrote in message
...
Going nuts trying to make this equation fit all possible situations -

I'd
like an equation to put in G that would look at mutliple IFs/ANDs:

IF B="in house" and C=Jack then E x .05
IF B="in house" and C=Jill then E x .05
IF B="in house" and C=(no name) then E x .06
IF B=anything other than "in house" and C=Jack then E x .01
IF B= anything other than "in house" and C=Jill then E x .01
IF B=anything other than "in house" and C=no name then E x .02

Is this possible to do in one equation? All suggestions welcome.

Thank
you.






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
Default User Defined Functions - How? flycast Excel Discussion (Misc queries) 4 May 26th 05 04:26 AM
PASTE DOWN FUNCTIONS jackle Excel Worksheet Functions 0 May 25th 05 02:10 PM
3 questions about automated c++ com add-in worksheet functions gert Excel Worksheet Functions 0 March 10th 05 09:57 AM
# of Functions per cell SUB-ZERO Excel Worksheet Functions 3 January 23rd 05 10:35 PM
Where can I see VBA code for financial functions? eios Excel Worksheet Functions 1 November 2nd 04 01:00 PM


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