Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 08-21-2013, 09:24 AM
BobBridges's Avatar
BobBridges BobBridges is offline I think I need an IF/AND & VLOOKUP formula here Windows 7 64bit I think I need an IF/AND & VLOOKUP formula here Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Hm, you're right about A$13; I didn't think that through. I plead lack of practice; I myself use R1C1 reference style, which is more intuitive for a programmer type like me. That formula in R1C1 would look like this:
Code:
=IF(AND(NOT(ISNA(VLOOKUP(RC1,R1C1:R7C3,1,FALSE))),VLOOKUP(RC1,R1C1:R7C3,2,FALSE)="Facial"),VLOOKUP(RC1,R1C1:R7C3,3,FALSE),"")
And yes, I agree with you about the extra paren.

Now about BAYBE. I didn't understand at first what was happening; if BAYBE is in there twice, it's still showing only the record for Facial, right? But no, I see the problem; if the record for "Nail" is before the one for "Facial", then this formula will find the one for Nail and stop looking, then display blanks because it's not "Facial". Is that the way it's behaving?

The solution will be to add the complication of a helping column. But while I was testing my solution, I found that there's a problem with the formula we agreed on. And since you didn't mention it, I suspect I've misunderstood your setup. Before we go on, maybe I should show you what I think you said, and you tell me what you actually are using. I'm attaching a test workbook; you'll notice in row 16 that when I put in a name that doesn't appear in the table, Excel displays not blanks, as was intended, but #N/A. That's because of the second lookup, you see. Now, there are ways around that, but why didn't you complain about it? I can think of two reasons: 1) You don't happen to have put any names in rows 13-17 that aren't in the table, or 2) my test worksheet doesn't match what you're actually doing. So I think I'd better check before we go any further.
Attached Files
File Type: xlsx x.xlsx (8.4 KB, 12 views)
Reply With Quote
 

Tags
if/and, vlookup



Similar Threads
Thread Thread Starter Forum Replies Last Post
VLookup formula Problem (salary plus (commission x sales)) topgear2015 Excel 11 06-05-2013 09:02 PM
I think I need an IF/AND & VLOOKUP formula here VLookup is giving me #N/A error, help with data or formula? ladygogo78 Excel 3 10-22-2012 12:28 AM
IF + VLOOKUP formula help skyline255 Excel 0 09-19-2012 05:05 PM
Help with VLOOKUP formula pattyr Excel 6 08-20-2012 02:20 AM
Using IF & VLOOKUP together junction Excel 7 11-18-2010 05:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft