Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

add additional step to current if formula

Posted on 2014-03-25
16
Medium Priority
?
213 Views
Last Modified: 2014-03-25
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))

Which is fine...I need to add the following step...if g2 date is less then todays date then replace c2 with complete,  if g2 has no date then above formula.
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
  • 9
  • 7
16 Comments
 
LVL 8

Accepted Solution

by:
Naresh Patel earned 2000 total points
ID: 39952805
=IF(G2<TODAY(),C2,If (A2="", if (c2="","", c2), VLOOKUP (a2,'sheet2'! $ a $2:$b $20,2, False)))
0
 

Author Comment

by:route217
ID: 39952812
Excellent feedback.
0
 

Author Comment

by:route217
ID: 39952823
Hi itjockey

The formula errors wlhen g2 is blank...it should return the value in c2..otherwise prefect.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39952830
=IF(OR(G2="",G2<TODAY()),C2,IF(A2="",IF(C2="","",C2),VLOOKUP(A2,sheet2!$A$2:$B$20,2,FALSE)))

Open in new window

0
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39952834
Mr.route217

i dint write your formula in Excel sheet as there are many references of other sheet which i dnt have. So above formula i had written in Note pad so it may ask for auto complete. just click yes. Or provide me sample file.


Thanks
0
 

Author Comment

by:route217
ID: 39952845
Hold on...could be my fault

If g2 is blank then f2, otherwise if g2 has date then h2..then rest of the formula. ..

Sorry
0
 

Author Comment

by:route217
ID: 39952864
Sorry..cannot upload sample file..
0
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39952866
Try this
=IF(IF(G2="",F2,IF(CELL("Format",G2)="D1",H2)),IF(A2="",IF(C2="","",C2),VLOOKUP(A2,Sheet2!$A$2:$B$20,2,FALSE)))

Open in new window

0
 

Author Comment

by:route217
ID: 39952879
Itjockey

Thanks but getting #value error
0
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39952909
ok don't provide me sample WB but list down your criteria for whole formula.

like...
1.If G2 is blank then F2,
2.if G2 has date then H2
3.your rest formula criteria.
0
 

Author Comment

by:route217
ID: 39952922
Firstly,  apologies ad I cannot upload. ..WB.

Based on this formula =IF(OR(G2="",G2<TODAY()),C2,IF(A2="",IF(C2="","",C2),VLOOKUP(A2,sheet2!$A$2:$B$20,2,FALSE)))

amend kindly do if g2 is blank the return h2..if g2 has a date then as normal as above.
0
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39952990
There are two parts of formula tell me which part execute when as formula is conflicting with criteria.

Part 1
If (A2="", if (c2="","", c2), VLOOKUP (a2,'sheet2'! $ a $2:$b $20,2, False))


Part 2
=IF(G2="",F2,IF(CELL("Format",G2)="D1",H2))

Thanks
0
 

Author Comment

by:route217
ID: 39953037
Hi itjockey. ..
Firstly thanks for all the excellent feedback...I have to post a new question..clearly with better wording.
0
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39953060
ok No problem but after you find solution pls post here formula or link for my understanding.


Thanks
0
 

Author Comment

by:route217
ID: 39953077
And once again appreciate the patience. ..
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

636 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