Multiple IF ANDS?

gmooney

Active Member
Joined
Oct 21, 2004
Messages
252
Office Version
  1. 365
Platform
  1. Windows
1
2
2211
2112
125000150000175000200000

<tbody>
</tbody>

I need a formula in A5,A6,A7 that will say if A1 =B3 AND A2 = B4 then give me B5, if they both don't match move over to column C and see if both those match, if so give me C5 and continuing on until it finds a match. Cells A1 and A2 will always be either 1 or 2 for each cell and cells B3:E4 are constant and will never change. Rows 6,7,8,9, etc will have values in columns B:E.

Any helps is greatly appreciated.
 
Last edited:

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Do you mean like this?

C1: =MATCH(1,INDEX((B3:E3=A1)*(B4:E4=A2),1,),)
A5: =INDEX(B5:E5,C$1) copy down


Book1
ABCDE
11MatchCol4
22
32211
42112
5200000125000150000175000200000
696789
725432
Sheet1
 
Last edited:
Upvote 0
Stephen,

This is giving me an #N/A. When I evaluate the formula it shows that B3:E3 are all false?



Do you mean like this?

C1: =MATCH(1,INDEX((B3:E3=A1)*(B4:E4=A2),1,),)
A5: =INDEX(B5:E5,C$1) copy down

ABCDE
11MatchCol4
22
32211
42112
5200000125000150000175000200000
696789
725432

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
 
Upvote 0
Stephen,

I got it to work. Your formula does work. Thanks!
 
Upvote 0

Forum statistics

Threads
1,216,222
Messages
6,129,588
Members
449,520
Latest member
TBFrieds

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