Solved

potential if/v lookup formula error

Posted on 2014-02-17
8
191 Views
Last Modified: 2014-02-17
Hi Expert's Excel 2007

I am using the following formula to complete the following scenario. .
Formula:-
=IF(o5="",IF(VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,14,0)="",VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,10,0),VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,14,0)),"")

Scenario: sheet 1

If cell o5 is blank and sheet 2 col 14 is blank then look up col 12. If o5 is blank and col 12 is blank then look up col 14...sheet 2
0
Comment
Question by:route217
  • 5
  • 2
8 Comments
 
LVL 8

Expert Comment

by:itjockey
ID: 39864530
pls provide sample file...
0
 
LVL 8

Expert Comment

by:itjockey
ID: 39864533
=IF(AND(O5="",IF(VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,14,0)=""),VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,10,0),VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,14,0)),"")
0
 
LVL 48

Expert Comment

by:Rgonzo1971
ID: 39864536
Hi,

Yu speak of col 12 and 14 but in your formula you have 10 and 14

Are the col numbers relative to c or relative to a

Regards
0
 

Author Comment

by:route217
ID: 39864637
Hi Rgonzo

Lets stick to the col in the formula. ...

I am getting an error with it jockeys formula after =""), part..
0
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

 
LVL 8

Expert Comment

by:itjockey
ID: 39864762
Try this.  =IF(AND(O5="",IF(VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,14,0)=""),VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,10,0),VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,14,0)),""

allows to auto complete
0
 
LVL 8

Expert Comment

by:itjockey
ID: 39864766
As I am not in position to investigate right now.Traveling.

Thanks
0
 
LVL 8

Accepted Solution

by:
itjockey earned 500 total points
ID: 39864785
=IFERROR(IF(AND(O5="",VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,14,0)=""),VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,10,0),VLOOKUP(Sheet2!B2,Sheet2!$C$2:$Q$500,14,0),"")
0
 

Author Comment

by:route217
ID: 39864842
Thanks for the feedback.. works
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

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

18 Experts available now in Live!

Get 1:1 Help Now