Solved

if formula with dates criteria

Posted on 2014-03-26
6
155 Views
Last Modified: 2014-03-27
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. .
0
Comment
Question by:route217
  • 3
  • 2
6 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 39956086
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.
0
 
LVL 8

Expert Comment

by:itjockey
ID: 39956091
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
0
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39956095
So perhaps you mean?

=IF(A2="",IF(C2="","",IF(AND(G2<>"",G2<TODAY(),H2=""),"Complete","Progress")),VLOOKUP(A2,Sheet2!$A$2:$B$20,2,FALSE))
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:route217
ID: 39956097
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.
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39956146
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,
0
 

Author Comment

by:route217
ID: 39956592
Nbvc..

Let me test. .and post the reply back.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
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.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now