A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

using if for multiple criteria



 
 
Thread Tools Display Modes
  #11  
Old May 22nd, 2009, 12:23 AM posted to microsoft.public.excel.misc
enna49
external usenet poster
 
Posts: 53
Default using if for multiple criteria

Thanks for your response. I have the answer to my question, but now the
ball game has changed again, hopefully I can sort out myself with what
information I have received. Otherwise I will be calling on you assistance
again.
Thanking you
Anne

"Ragdyer" wrote:

When do you apply the Breakdown cost to the total?
Is it added *only* when there is a "w"?

=COUNTIF(F2:K2,"w")*(C2+E2-D2)+D2*6

If not, you'll have to explain further.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"enna49" wrote in message
...
Thank you for your quick response, this is great.

Please can you help in another issue that has arisen with the same

scenario.

There is now an extra field required eg BREAKDOWN, how can I include this

to
be another option.
I have also tried to fix the N/A option. If you know of a quick solution
that would also be helpful.

Thanking you
"Ragdyer" wrote:

Assume that C2 will *always* be larger then D2:

=COUNTIF(E2:J2,"w")*(C2-D2)+D2*6
--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-

"enna49" wrote in message
...
Hi
I have used the formula below for adding across cells if certain

criteria.
This does work, however is there a cleaner way of doing this. Example
Data
below:

C2 = Working Shift Cost
D2 = Idle Shift Cost
E2 to J2 represents days of the week (Mon - Sat) and a Total is

required
for
this cost. Using Excel 2007



=SUM(IF(E2="W",C2,D2)+(IF(F2="w",C2,D2))+(IF(G2="w ",C2,D2))+(IF(H2="w",C2,D2
))+(IF(I2="w",C2,D2))+(IF(J2="w",C2,D2)))
Thanking you
Anne




  #12  
Old May 23rd, 2009, 08:21 PM posted to microsoft.public.excel.misc
RagDyeR
external usenet poster
 
Posts: 3,482
Default using if for multiple criteria

Thanks for the feed-back.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"enna49" wrote in message
...
Thanks for your response. I have the answer to my question, but now the
ball game has changed again, hopefully I can sort out myself with what
information I have received. Otherwise I will be calling on you

assistance
again.
Thanking you
Anne

"Ragdyer" wrote:

When do you apply the Breakdown cost to the total?
Is it added *only* when there is a "w"?

=COUNTIF(F2:K2,"w")*(C2+E2-D2)+D2*6

If not, you'll have to explain further.
--
Regards,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-

"enna49" wrote in message
...
Thank you for your quick response, this is great.

Please can you help in another issue that has arisen with the same

scenario.

There is now an extra field required eg BREAKDOWN, how can I include

this
to
be another option.
I have also tried to fix the N/A option. If you know of a quick

solution
that would also be helpful.

Thanking you
"Ragdyer" wrote:

Assume that C2 will *always* be larger then D2:

=COUNTIF(E2:J2,"w")*(C2-D2)+D2*6
--
HTH,

RD



--------------------------------------------------------------------------
-
Please keep all correspondence within the NewsGroup, so all may

benefit
!


--------------------------------------------------------------------------
-

"enna49" wrote in message
...
Hi
I have used the formula below for adding across cells if certain

criteria.
This does work, however is there a cleaner way of doing this.

Example
Data
below:

C2 = Working Shift Cost
D2 = Idle Shift Cost
E2 to J2 represents days of the week (Mon - Sat) and a Total is

required
for
this cost. Using Excel 2007




=SUM(IF(E2="W",C2,D2)+(IF(F2="w",C2,D2))+(IF(G2="w ",C2,D2))+(IF(H2="w",C2,D2
))+(IF(I2="w",C2,D2))+(IF(J2="w",C2,D2)))
Thanking you
Anne





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:08 PM.


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