Help with text based If/then statement

elburro

New Member
Joined
Apr 9, 2014
Messages
5
I am trying to format the following formula but am not sure how to do it.

In sentence form, I'm trying to say: If column/row C59=Tom and column/row G59=**** and Column/row K59=Harry, then column/row R59 =1 or 0 if false. =IF(AND(C59="Tom"*G59="****"*K59="Harry"),1,0)

Additionally, what I'd really like to do is add a range of info.I.e.

If any rows fit this criteria they will sum the total.

=IF(AND(C29:59="Tom"*G29:59="****"*K29:59="Harry"),1,0)

WHere am I going wrong?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hello, elburro.
Please try this formulae and see if this is what you meant.

Code:
=IF(AND(C59="Tom",G59<>"",K59="Harry"),1,0)

Code:
=SUMPRODUCT(--(C29:C59="Tom"),--(G29:G59<>""),--(K29:K59="Harry"))
 
Upvote 0
Osvaldo,

Thanks! This is not quite working yet. So - here is the closest thing I can give you for a worksheet. My computer is pretty locked down so I can't actually upload anything.

I am trying to write a formula that would sum all Social Worker III's (in column C) that speak Spanish (in column F) and are Waiting for open req names (in column J). THe result would be placed in the cell below in the following chart in Column F in the row marked Spanish III.

Hope that this makes sense. Essentially, I need formula's to total all different variations of the previous request (i.e for Social Worker II's and the differnt languages they speak etc.) but I think that I can rewrite the formula to get that if I can just get the first formula to work.

Please let me know if there is any other info I can give to help you solve this puzzle!


Thanks again!



A
Hiring Manager</SPAN>
B
Supervisor</SPAN>
C
Job Title</SPAN>
D
Count</SPAN>
E
Lang Code</SPAN>
F
Language </SPAN>
G
Position No</SPAN>
H
Vacancy Dt</SPAN>
I
Vacated By</SPAN>
J
Status</SPAN>
K
Notes</SPAN>
L
Trans Req</SPAN>
M
Open Req</SPAN>
Jones, BobSmith, Ted</SPAN>Social Worker III/II</SPAN>1</SPAN>B</SPAN>Spanish</SPAN>00012345</SPAN>4/29/2013</SPAN>Jones, TomWaiting for open req names </SPAN>5/3/13 – Req # 87654 created, approved 5/20/13
5/21-5/28/2013 posted on transfer line – zero applicants 5/30/13 – Added to Open Req 2/10/13 Names rcvd from Open req </SPAN>
87645</SPAN><STRIKE>99999</STRIKE>
Smith, Ted</SPAN></SPAN>Social Worker III</SPAN>1</SPAN>A</SPAN>Mono</SPAN>000123463/31/2014 FUTURE</SPAN>Wallace, MaryWaiting for trans. names</SPAN>03/07/14 - Need transfer req 03/21/14 - Transfer III req created Waiting for TL posting</SPAN>42678
Smith, Ted</SPAN></SPAN>Social Worker III</SPAN>1</SPAN>A</SPAN>Mono</SPAN>000123472/17/2014</SPAN>Anderson, FrankWaiting for open req names </SPAN>02/11/14 – Transf Req III created
02/25/14- Transf line closes 03/04/14 03/07/14 - No candidates move to open or go to II
03/19/14 - Moving to open III req</SPAN>
<STRIKE>78594</STRIKE>68745
Smith, Ted</SPAN></SPAN>Social Worker III</SPAN>1</SPAN>C</SPAN>Vietnamese</SPAN>000123482/17/2014</SPAN>Cooper, AndyWaiting for open req names </SPAN>02/11/14 – Transf Req created
02/25/14- Transf line closes 03/04/14 03/07/14 - No candidates move to open or go to II
03/24/14 - Move to viet open req</SPAN>
<STRIKE>17846</STRIKE>
Smith, Ted</SPAN></SPAN>Social Worker III</SPAN>1</SPAN>B</SPAN>Spanish</SPAN>000123491/6/2014</SPAN>Delano, RichardWaiting for open req names </SPAN>12/10/13 – Trans req created
01/17/14 – On transfer line 03/04/14 - Moved to open req</SPAN>
<STRIKE>74638</STRIKE><STRIKE>06958</STRIKE> 47383
SUB TOTAL NON SW POSITIONS</SPAN> #REF!</SPAN>#REF!</SPAN> TOTAL OPEN POSITIONS</SPAN> #REF!</SPAN>
Waiting for Transf Req</SPAN>On Transfer Line</SPAN>Waiting for Transf Names</SPAN>Waiting for Names from Open Req</SPAN>in Interviews</SPAN>TOTALS</SPAN>
MONO</SPAN>II</SPAN>
SPANISH</SPAN>II</SPAN>
VIETNAMESE</SPAN>II</SPAN>
MONO</SPAN>III</SPAN>
SPANISH</SPAN>III</SPAN>
VIETNAMESE</SPAN>III</SPAN>
MONO </SPAN>II/III</SPAN>
SPANISH</SPAN>II/III</SPAN>
VIETNAMESE</SPAN>II/III</SPAN>
TOTAL</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL span=2></COLGROUP>
 
Upvote 0
Thanks. However, if I enter the formula =COUNTIF((C29:C59="Social Worker III"),(G29:G59="Spanish"),(K29:K59="Waiting for open req names")) I get an error of "You've entered too many arguments for this function."
 
Upvote 0
Thanks Osvaldo for helping me to solve this issue! (=COUNTIFS($E$2:$E$6,A9,$I$2:$I$6,$C$8,$C$2:$C$6,B9))
 
Upvote 0

Forum statistics

Threads
1,215,527
Messages
6,125,333
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top