?
Solved

tricky if formula

Posted on 2014-03-27
6
Medium Priority
?
141 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
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: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 2000 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

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!

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
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…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

765 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