![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 18
|
I am trying to create an IF formula to add to the following formula, that when A1 is blank this cell wont show up with N/A.
=VLOOKUP(A1,'Price Sheet'!$A$1:$C$300,2,FALSE) This cell is in B1 Thanks |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=IF(AND(LEN(A1),COUNTIF('Price Sheet'!$A$1:$A$300,A1)),VLOOKUP(A1,'Price Sheet'!$A$1:$C$300,2,0),"") The 0 in VLOOKUP is substituted for FALSE because FALSE=0 as far as Excel is concerned. I'd suggest to change the sheet name Price Sheet in order to eliminate single quotes arount it either to PriceSheet or just Prices. |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2002
Posts: 18
|
Thanks AGAIN.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|