Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default more if statements and vlookups

I am trying to reference another worksheet with a retail value and a
wholesale value based on a value entered on the purchase sheet (r for retail
and w for wholesale). This is what I have entered and it isn't working.

=IF(E7="R",(VLOOKUP('b14,Pet Store
Database'!$A$8:$G$75,7,FALSE)),IF(E7="W",(VLOOKUP( 'b14,Pet Store
Database'!$A$8:$D$75,4,FALSE))))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default more if statements and vlookups

It looks like you have an apostrophe (single quote) in the wrong place
The VLOOKUP part needs to be
VLOOKUP(B14,'Pet Store Database'!$A$8:$G$75,7,FALSE)

We could get rid of some unneeded parentheses
=IF(E7="R",VLOOKUP(B14,'Pet Store Database'!$A$8:$G$75,7,FALSE),
IF(E7="W",VLOOKUP(B14,'Pet Store Database'!$A$8:$D$75,4,FALSE)))

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"AmyLRuck" wrote in message
...
I am trying to reference another worksheet with a retail value and a
wholesale value based on a value entered on the purchase sheet (r for
retail
and w for wholesale). This is what I have entered and it isn't working.

=IF(E7="R",(VLOOKUP('b14,Pet Store
Database'!$A$8:$G$75,7,FALSE)),IF(E7="W",(VLOOKUP( 'b14,Pet Store
Database'!$A$8:$D$75,4,FALSE))))



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 VLookups Guitarbuyer Excel Worksheet Functions 1 August 4th 08 09:45 PM
IF STATEMENTS COMBINED WITH VLOOKUPS peggyL Excel Worksheet Functions 2 July 1st 08 09:10 PM
Dependent vlookups - nested vlookups (maybe) Maniv Excel Worksheet Functions 1 April 22nd 08 07:40 PM
VLOOKUPS SLONDON Excel Discussion (Misc queries) 1 October 26th 07 04:32 PM
Pivot tables, IF statements, vlookups? dannyrblock Excel Worksheet Functions 2 September 20th 07 09:40 PM


All times are GMT +1. The time now is 08:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"