Table function with multiple condition

Negi1984

Board Regular
Joined
May 6, 2011
Messages
199
Hi All,

I have created a dummy sheet and uploaded in below mentioned link with desired output which I needed.

https://1drv.ms/x/s!Ap80Ku6M2Tw5gSjnz_4XxSm4Rg5R

Logic : -

1) IF RESOURCE STATUS or ASSIGNMENT STATUS is LEFT PROJECT or OLD-INACTIVE and Hourly rate is 0 then output should be "NA".
2) where RESOURCE STATUS is ENGAGED/APPROVED and ASSIGNMENT STATUS is blank then :-
i) ASSIGNMENT START DATE & END DATE difference and check if all the column should be filled with greater than 0 value. for example : if start date is of jan and end date in mar than column Jan to Mar should be filled with value
greater than 0 and if its satisfy the condition the result should be "ok" , otherwise "issue".

I tried below formula but its not 100% ok.


=IF(OR([@[RESOURCE
STATUS]]="LEFT PROJECT",[@[ASSIGNMENT STATUS]]="OLD-INACTIVE",[@[HOURLY RATE]]=0),"NA",IF(AND([@[RESOURCE
STATUS]]="ENGAGED/APPROVED",[@[ASSIGNMENT STATUS]]="",SUMPRODUCT((ASSIGNMENTS[@[Jan-14]:[Nov-14]]<=0)*(DATEVALUE("1-"&ASSIGNMENTS[[#Headers],[Jan-14]:[Nov-14]])>=[@[ASSIGNMENT START DATE]])*(DATEVALUE("1-"&ASSIGNMENTS[[#Headers],[Jan-14]:[Nov-14]])<=[@[END DATE]]))=0,SUMPRODUCT((ASSIGNMENTS[@[Jan-14]:[Nov-14]]>0)*((DATEVALUE("1-"&ASSIGNMENTS[[#Headers],[Jan-14]:[Nov-14]])<[@[ASSIGNMENT START DATE]])+(DATEVALUE("1-"&ASSIGNMENTS[[#Headers],[Jan-14]:[Nov-14]])>[@[END DATE]])))=0),"Ok","Issue"))

Thanks once again for your valuable suggestion
Regards,
Rajender
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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