Multiple IF conditions and Arrays

loosenut

New Member
Joined
Feb 20, 2004
Messages
41
Hi,

I am trying to extract the type of activity (column I) a specific drilling rig (column Z) will be performing between two dates (columns AP and AO). Essentially the arguements should be for all rows containing the rig name (z2) in column A, whose end date (column J) is <=AP and start date (column K) >=AO, then tell me the type of activity (column I), otherwise 0). Am I close, is there a better way to do this? The answer seems to always report "0" even if there is data?


{=IF(AND(($A$2:$A$1500=Z2),($J$2:$J$1500<=AP$1),($K$2:$K$1500>=AO$1))=TRUE,$I$2:$I$1500,0)}

Thanks for your help!

Loosenut :p
 
...Or search the site (and/or internet) for keywords like "coersion" & "double unary". You're bound to get lots of info.
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,216,118
Messages
6,128,939
Members
449,480
Latest member
yesitisasport

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