Link to home
Start Free TrialLog in
Avatar of route217
route217Flag for United Kingdom of Great Britain and Northern Ireland

asked on

if formula with dates criteria

Hi Experts excel 2007

I have the following of formula in cell b2 
If (A2="", if (c2="","", c2), VLOOKUP (a2,'sheet2'! $ a $2:$b $20,2, False))

Fine works 100%...
Need to include following steps...if g2 has a dates less then todays date and h2 is blank no date then replace c2 with complete. ..if g2 had a date less ten today's date and h2 has a future date then in replace c2 with in progress. .
Avatar of NBVC
NBVC
Flag of Canada image

You wouldn't be able to "replace" C2 within that formula, since I am assuming that formula is not currently in C2 due to the reference to C2 it now has.

Do you mean, you want to replace the C2 reference in this part: if (c2="","", c2) with your new conditions?  The formula itself will not be in C2, though.
Mr.route217,
If you don't want to post sample then create dummy WB and post all your criteria at once so it would be easy to crete clean formula.as part by part may conflicts with other criteria. Still choice is yours.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of NBVC
NBVC
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of route217

ASKER

Nbvc

The formula is in b2...I want to keep c2="","", c2...intact and only if we have a date in g2 or h2 then replace c2...with new conditions.
I am not sure I understand then.  As I mentioned, you can't "replace" C2 with a formula in B2.

My formula above, will leave B2 blank if C2 is blank, and will check the other conditions if C2 is not blank,
Nbvc..

Let me test. .and post the reply back.