VlookUP as a solution or Multiple 'IF , 'And' & 'Or' statements for an Excel query (non VBA) -


have been racking brains problem, through these sites solution 1 has me beat!!! if can me appreciate it. oh guys can make sense of ramblings , problem :-) problem lies around 2 different inspection types , 2 different times (dates) required complete them. inspection type 1 has 3 days completed , inspection type 2 has 1 day . looking formula when columns a2000:e2000(could more, less depends on amount of inspections) copied , pasted sheet column f states(dynamically) if inspection type 'on target' or 'not on target'

                    b           c            e                       f 1 inspection type   date issued date due    date completed   on target 2 inspection type 1 19/05/2015  22/05/2015  20/05/2015                on target 3 inspection type 1 18/05/2015  21/05/2015  24/05/2015                off target 4 inspection type 2 10/05/2015  11/05/2015  11/05/2015                on target 5 inspection type 1 15/05/2015  16/05/2015  15/05/2015                on target 6 inspection type 2 01/05/2015  02/05/2015  05/05/2015                off target 7 inspection type 1 05/05/2015  08/05/2015  09/05/2015                off target 

try this: =if(right(b2,1)="1",if(e2<=d2,"on target 1","off target 1"),if(right(b2,1)="2",if(e2<=d2,"on target 2","off target 2"),"error"))

you see labelled different targets, can alter if wish - helped me sort errors. inspection type have 2 names no trailing spaces etc? otherwise error. inspection type assumed in column b, if need change "right" statement.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -