IF AND STATEMENTS

russellday1

New Member
Joined
May 12, 2015
Messages
7
So I have a list of locations in A:A , a list of audits in B:B and list of audit results in C:C

What I want to do in a summary sheets is to say if A1 (Location name) = to any cell in A:A AND B1 (Audit name) is equal to the B:B then return the result in C:C - The two conditions and result need to be on the same row.

I have tried IF AND but it gives me a false unless i specify the cells rather than range

Any help appreciated
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try

Book2
ABC
1Location NameAudit NameResult
2ABB
3BD 
4CE 
5DF 
6ABB
Sheet1
Cell Formulas
RangeFormula
C2:C6C2=IF(AND(COUNTIF($A$2:$A$50,A2)>1,COUNTIF($B$2:$B$50,B2)>1),B2,"")
 
Upvote 0
russellday1, Good morning.

I'm not sure if I understood well your question.

Try to use:

=IF(MATCH(A1; A2:A10; 0) = MATCH(B1; B2:B10;0); INDEX(C2:C10; MATCH(A1; A2:A10;0));"Nof found")

Please, tell us if it worked for you.

I hope it helps.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,867
Members
449,053
Latest member
Mesh

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