Solved

tricky if formula

Posted on 2014-03-27
6
138 Views
Last Modified: 2014-03-28
Hi Expert's excel 2007

I need to amend current formula to add the following condition...additional criteria

=IF(A2="",IF(C2="","",IF(AND(G2<>"",G2<TODAY(),H2=""),"Complete","Progress")),VLOOKUP(A2,Sheet2!$A$2:$B$20,2,FALSE))

If g2 and h2 both have no dates then c2..
0
Comment
Question by:route217
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39958317
=IF(AND(CELL("Format",G2)="D1",CELL("Format",H2)="D1"),C2,IF(A2="",IF(C2="","",IF(AND(G2<>"",G2<TODAY(),H2=""),"Complete","Progress")),VLOOKUP(A2,Sheet2!$A$2:$B$20,2,FALSE)))
0
 

Author Comment

by:route217
ID: 39958320
You superstar. ..itjockey. ..

Appreciated

Just double checking
0
 

Author Comment

by:route217
ID: 39958326
Ok...slightly problem...when g2 has a date and h2 us blank in addition to the above then return complete. ..if g2 is blank and h2 gas date then in progress
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39958327
Just to inform you that =CELL("Format",G2) return to "D1" if G2 date format is "d-mmm-yy or dd-mmm-yy". if there is some different format then modify formula as per format. below is list of Returning value & its format.



"D4"         - m/d/yy or m/d/yy h:mm or mm/dd/yy
"D1"         - d-mmm-yy or dd-mmm-yy
"D2"         - d-mmm or dd-mmm
"D3"         - mmm-yy
"D5"         - mm/dd
"D6"         - h:mm:ss AM/PM
"D7"         - h:mm AM/PM
"D8"         - h:mm:ss
"D9"         - h:mm


Thanks
0
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39958337
=IF(AND(CELL("Format",G2)="D1",H2=""),"Complet",IF(AND(CELL("Format",H2)="D1",G2=""),"Progress",IF(AND(CELL("Format",G2)="D1",CELL("Format",H2)="D1"),C2,IF(A2="",IF(C2="","",IF(AND(G2<>"",G2<TODAY(),H2=""),"Complete","Progress")),VLOOKUP(A2,Sheet2!$A$2:$B$20,2,FALSE)))))
0
 
LVL 8

Accepted Solution

by:
Naresh Patel earned 500 total points
ID: 39958395
=IF(AND(CELL("Format",G2)="D1",H2=""),"Complete",IF(AND(CELL("Format",H2)="D1",G2=""),"Progress",IF(AND(CELL("Format",G2)="D1",CELL("Format",H2)="D1"),C2,IF(A2="",IF(C2="","",IF(AND(G2<>"",G2<TODAY(),H2=""),"Complete","Progress")),VLOOKUP(A2,Sheet2!$A$2:$B$20,2,FALSE)))))


Sorry Spelling is wrong in formula this is revised one.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question