Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default vlookup question

I have created a workbook for calculating commissions. I import invoices
from QuickBooks into a template that includes a table with inventory cost.
I need to know when an item that is imported is not on the table. Right now
I use vlookup with the FALSE attributr to find cost and, as it should, this
gives a #N/A error. I would like to instead change text color or the cell
background color in the cell with the incorrect item. I have looked around
and cannot find how to do this. Any help? (I prefer to stay away from VBA
if possible)

Dave


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default vlookup question

To avoid the #NA use something like
=IF(iserror(vlookup(A1, Z$1:AB$100,2,false)),"Not found",vlookup(A1,
Z$1:AB$100,2,false))

You can then use conditional formatting to highlight the cells containing
"Not found".

Tim

--
Tim Williams
Palo Alto, CA


"brutus" wrote in message
.net...
I have created a workbook for calculating commissions. I import invoices
from QuickBooks into a template that includes a table with inventory cost.
I need to know when an item that is imported is not on the table. Right

now
I use vlookup with the FALSE attributr to find cost and, as it should,

this
gives a #N/A error. I would like to instead change text color or the cell
background color in the cell with the incorrect item. I have looked

around
and cannot find how to do this. Any help? (I prefer to stay away from

VBA
if possible)

Dave




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default vlookup question

Thanks for your reply. I am familiar with that option when I do a vlookup.
What I am trying to do is flag cells that contain data that is not in the
table. Maybe I need to approach it another way and compare cell contents
with allowable enreies using MATCH?

Dave

"Tim Williams" <timjwilliams at gmail dot com wrote in message
...
To avoid the #NA use something like
=IF(iserror(vlookup(A1, Z$1:AB$100,2,false)),"Not found",vlookup(A1,
Z$1:AB$100,2,false))

You can then use conditional formatting to highlight the cells containing
"Not found".

Tim

--
Tim Williams
Palo Alto, CA


"brutus" wrote in message
.net...
I have created a workbook for calculating commissions. I import invoices
from QuickBooks into a template that includes a table with inventory
cost.
I need to know when an item that is imported is not on the table. Right

now
I use vlookup with the FALSE attributr to find cost and, as it should,

this
gives a #N/A error. I would like to instead change text color or the
cell
background color in the cell with the incorrect item. I have looked

around
and cannot find how to do this. Any help? (I prefer to stay away from

VBA
if possible)

Dave






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default vlookup question

Yes, use conditional formatting and set the "formula" to something
like:

=ISERROR(MATCH(A2,VALS,0))

Where A2 is the cell containing the value and VALS is a named range
with the list of allowed values.

Tim.


"brutus" wrote in message
ink.net...
Thanks for your reply. I am familiar with that option when I do a
vlookup. What I am trying to do is flag cells that contain data that
is not in the table. Maybe I need to approach it another way and
compare cell contents with allowable enreies using MATCH?

Dave

"Tim Williams" <timjwilliams at gmail dot com wrote in message
...
To avoid the #NA use something like
=IF(iserror(vlookup(A1, Z$1:AB$100,2,false)),"Not
found",vlookup(A1,
Z$1:AB$100,2,false))

You can then use conditional formatting to highlight the cells
containing
"Not found".

Tim

--
Tim Williams
Palo Alto, CA


"brutus" wrote in message
.net...
I have created a workbook for calculating commissions. I import
invoices
from QuickBooks into a template that includes a table with
inventory cost.
I need to know when an item that is imported is not on the table.
Right

now
I use vlookup with the FALSE attributr to find cost and, as it
should,

this
gives a #N/A error. I would like to instead change text color or
the cell
background color in the cell with the incorrect item. I have
looked

around
and cannot find how to do this. Any help? (I prefer to stay away
from

VBA
if possible)

Dave








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default vlookup question

That made it work. Thanks a lot.

Dave

"Tim Williams" <saxifrax@pacbell*dot*net wrote in message
...
Yes, use conditional formatting and set the "formula" to something like:

=ISERROR(MATCH(A2,VALS,0))

Where A2 is the cell containing the value and VALS is a named range with
the list of allowed values.

Tim.


"brutus" wrote in message
ink.net...
Thanks for your reply. I am familiar with that option when I do a
vlookup. What I am trying to do is flag cells that contain data that is
not in the table. Maybe I need to approach it another way and compare
cell contents with allowable enreies using MATCH?

Dave

"Tim Williams" <timjwilliams at gmail dot com wrote in message
...
To avoid the #NA use something like
=IF(iserror(vlookup(A1, Z$1:AB$100,2,false)),"Not found",vlookup(A1,
Z$1:AB$100,2,false))

You can then use conditional formatting to highlight the cells
containing
"Not found".

Tim

--
Tim Williams
Palo Alto, CA


"brutus" wrote in message
.net...
I have created a workbook for calculating commissions. I import
invoices
from QuickBooks into a template that includes a table with inventory
cost.
I need to know when an item that is imported is not on the table. Right
now
I use vlookup with the FALSE attributr to find cost and, as it should,
this
gives a #N/A error. I would like to instead change text color or the
cell
background color in the cell with the incorrect item. I have looked
around
and cannot find how to do this. Any help? (I prefer to stay away from
VBA
if possible)

Dave












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
Help Please VLOOKUP question baz Excel Discussion (Misc queries) 2 February 14th 08 10:35 PM
VLOOKUP Question Rich K. Excel Discussion (Misc queries) 9 February 19th 07 10:15 PM
vlookup question Pakmount Excel Discussion (Misc queries) 1 October 21st 06 07:46 AM
vlookup question Greegan Excel Worksheet Functions 3 December 20th 05 04:00 AM
Vlookup question nycguy96 Excel Discussion (Misc queries) 2 April 21st 05 04:06 PM


All times are GMT +1. The time now is 03:45 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"