Solved

tricky if formula

Posted on 2014-03-27
6
136 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
  • 4
  • 2
6 Comments
 
LVL 8

Expert Comment

by:itjockey
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Expert Comment

by:itjockey
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:itjockey
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:
itjockey 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

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.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
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 create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

733 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