Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default VLookup - can I set my formula to fill in date if item isn't in ta

I have quote spreadsheet in which sale rep can fill in a part number and the
description, price and type of item it is fills in automatically.

My question is, if they part number isn't in the vlookup table, I want a
default answer to fill in the type column instead of #N/A.

Is that possible, and if so, how would I do it?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default VLookup - can I set my formula to fill in date if item isn't in ta

What default value would you like?

One way is to leave the cell blank if the lookup value isn't found:

=IF(ISNA(VLOOKUP(..........)),"",VLOOKUP(......... .))

Just replace the "" with whatever default value you want. Just remember that
a TEXT value needs to be enclosed in quotes: "text" and a numeric value
doesn't: 0.

Biff

"NANGO" wrote in message
...
I have quote spreadsheet in which sale rep can fill in a part number and
the
description, price and type of item it is fills in automatically.

My question is, if they part number isn't in the vlookup table, I want a
default answer to fill in the type column instead of #N/A.

Is that possible, and if so, how would I do it?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default VLookup - can I set my formula to fill in date if item isn't in ta

=if(isna(vlookup(...)),"default answer",vlookup(....))

If you're using xl2007, you could use:

=iferror(vlookup(...),"Default answer")

NANGO wrote:

I have quote spreadsheet in which sale rep can fill in a part number and the
description, price and type of item it is fills in automatically.

My question is, if they part number isn't in the vlookup table, I want a
default answer to fill in the type column instead of #N/A.

Is that possible, and if so, how would I do it?

Thanks


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default VLookup - can I set my formula to fill in date if item isn't i

Here is my formula:

=IF(B11="","",VLOOKUP(B11,$IO$138:$IT$20454,4,0))

and if B11 isn't a product in my lookup table, I want it to say "hardware"
instead of #NA.

"T. Valko" wrote:

What default value would you like?

One way is to leave the cell blank if the lookup value isn't found:

=IF(ISNA(VLOOKUP(..........)),"",VLOOKUP(......... .))

Just replace the "" with whatever default value you want. Just remember that
a TEXT value needs to be enclosed in quotes: "text" and a numeric value
doesn't: 0.

Biff

"NANGO" wrote in message
...
I have quote spreadsheet in which sale rep can fill in a part number and
the
description, price and type of item it is fills in automatically.

My question is, if they part number isn't in the vlookup table, I want a
default answer to fill in the type column instead of #N/A.

Is that possible, and if so, how would I do it?

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default VLookup - can I set my formula to fill in date if item isn't i

Try this:

=IF(B11="","",IF(ISNUMBER(MATCH(B11,$IO$138:$IO$20 454,0)),VLOOKUP(B11,$IO$138:$IT$20454,4,0),"Hardwa re"))

Biff

"NANGO" wrote in message
...
Here is my formula:

=IF(B11="","",VLOOKUP(B11,$IO$138:$IT$20454,4,0))

and if B11 isn't a product in my lookup table, I want it to say "hardware"
instead of #NA.

"T. Valko" wrote:

What default value would you like?

One way is to leave the cell blank if the lookup value isn't found:

=IF(ISNA(VLOOKUP(..........)),"",VLOOKUP(......... .))

Just replace the "" with whatever default value you want. Just remember
that
a TEXT value needs to be enclosed in quotes: "text" and a numeric value
doesn't: 0.

Biff

"NANGO" wrote in message
...
I have quote spreadsheet in which sale rep can fill in a part number and
the
description, price and type of item it is fills in automatically.

My question is, if they part number isn't in the vlookup table, I want
a
default answer to fill in the type column instead of #N/A.

Is that possible, and if so, how would I do it?

Thanks








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default VLookup - can I set my formula to fill in date if item isn't i

I must be doing something wrong, because even the product is in my list and
should fill in the type of the item it still puts "hardware" as default, when
some of them are not software.

I'm trying to get this to put "hardware" as default when the part number
they enter is not in my vlookup table. Does that make sense?

Here's the formula I tried (it's changed because my columns & rows have
expanded since my last e-mail).

=IF(B10="","",IF(ISNUMBER(MATCH(B10,$IK$138:$IT$21 698,0)),VLOOKUP(B10,$IK$138:$IT$21698,8,0),"Hdwr/Sftwr"))

Any thoughts? Thanks!

"T. Valko" wrote:

Try this:

=IF(B11="","",IF(ISNUMBER(MATCH(B11,$IO$138:$IO$20 454,0)),VLOOKUP(B11,$IO$138:$IT$20454,4,0),"Hardwa re"))

Biff

"NANGO" wrote in message
...
Here is my formula:

=IF(B11="","",VLOOKUP(B11,$IO$138:$IT$20454,4,0))

and if B11 isn't a product in my lookup table, I want it to say "hardware"
instead of #NA.

"T. Valko" wrote:

What default value would you like?

One way is to leave the cell blank if the lookup value isn't found:

=IF(ISNA(VLOOKUP(..........)),"",VLOOKUP(......... .))

Just replace the "" with whatever default value you want. Just remember
that
a TEXT value needs to be enclosed in quotes: "text" and a numeric value
doesn't: 0.

Biff

"NANGO" wrote in message
...
I have quote spreadsheet in which sale rep can fill in a part number and
the
description, price and type of item it is fills in automatically.

My question is, if they part number isn't in the vlookup table, I want
a
default answer to fill in the type column instead of #N/A.

Is that possible, and if so, how would I do it?

Thanks






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default VLookup - can I set my formula to fill in date if item isn't i

=IF(B10="","",IF(ISNUMBER(MATCH(B10,$IK$138:$IT$21 698,0)),VLOOKUP(B10,$IK$138:$IT$21698,8,0),"Hdwr/Sftwr"))

Any thoughts?


The 2nd argument in MATCH *MUST* be a 1 dimensional array:

MATCH(B10,$IK$138:$IT$21698,0)

Change it to:

MATCH(B10,$IK$138:$IK$21698,0)

Biff

"NANGO" wrote in message
...
I must be doing something wrong, because even the product is in my list and
should fill in the type of the item it still puts "hardware" as default,
when
some of them are not software.

I'm trying to get this to put "hardware" as default when the part number
they enter is not in my vlookup table. Does that make sense?

Here's the formula I tried (it's changed because my columns & rows have
expanded since my last e-mail).

=IF(B10="","",IF(ISNUMBER(MATCH(B10,$IK$138:$IT$21 698,0)),VLOOKUP(B10,$IK$138:$IT$21698,8,0),"Hdwr/Sftwr"))

Any thoughts? Thanks!

"T. Valko" wrote:

Try this:

=IF(B11="","",IF(ISNUMBER(MATCH(B11,$IO$138:$IO$20 454,0)),VLOOKUP(B11,$IO$138:$IT$20454,4,0),"Hardwa re"))

Biff

"NANGO" wrote in message
...
Here is my formula:

=IF(B11="","",VLOOKUP(B11,$IO$138:$IT$20454,4,0))

and if B11 isn't a product in my lookup table, I want it to say
"hardware"
instead of #NA.

"T. Valko" wrote:

What default value would you like?

One way is to leave the cell blank if the lookup value isn't found:

=IF(ISNA(VLOOKUP(..........)),"",VLOOKUP(......... .))

Just replace the "" with whatever default value you want. Just
remember
that
a TEXT value needs to be enclosed in quotes: "text" and a numeric
value
doesn't: 0.

Biff

"NANGO" wrote in message
...
I have quote spreadsheet in which sale rep can fill in a part number
and
the
description, price and type of item it is fills in automatically.

My question is, if they part number isn't in the vlookup table, I
want
a
default answer to fill in the type column instead of #N/A.

Is that possible, and if so, how would I do it?

Thanks








  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default VLookup - can I set my formula to fill in date if item isn't i

I'm still doing something wrong? No matter what I enter, I get "hardware"
even if column C is different.

Here's an example vlookup table:

Col A = Part # Col B = Description Col C = Product Type
Row 1
Row 2
Row 3

If I enter a valid part that's in row 1, 2 or 3, I want the product type
from row C, whether it's "hardware", "software", or "maintenance".

Then, if I enter a part number that isn't in row 1, 2 or 3, that's when I
want it to default to "hardware".






"T. Valko" wrote:

=IF(B10="","",IF(ISNUMBER(MATCH(B10,$IK$138:$IT$21 698,0)),VLOOKUP(B10,$IK$138:$IT$21698,8,0),"Hdwr/Sftwr"))

Any thoughts?


The 2nd argument in MATCH *MUST* be a 1 dimensional array:

MATCH(B10,$IK$138:$IT$21698,0)

Change it to:

MATCH(B10,$IK$138:$IK$21698,0)

Biff

"NANGO" wrote in message
...
I must be doing something wrong, because even the product is in my list and
should fill in the type of the item it still puts "hardware" as default,
when
some of them are not software.

I'm trying to get this to put "hardware" as default when the part number
they enter is not in my vlookup table. Does that make sense?

Here's the formula I tried (it's changed because my columns & rows have
expanded since my last e-mail).

=IF(B10="","",IF(ISNUMBER(MATCH(B10,$IK$138:$IT$21 698,0)),VLOOKUP(B10,$IK$138:$IT$21698,8,0),"Hdwr/Sftwr"))

Any thoughts? Thanks!

"T. Valko" wrote:

Try this:

=IF(B11="","",IF(ISNUMBER(MATCH(B11,$IO$138:$IO$20 454,0)),VLOOKUP(B11,$IO$138:$IT$20454,4,0),"Hardwa re"))

Biff

"NANGO" wrote in message
...
Here is my formula:

=IF(B11="","",VLOOKUP(B11,$IO$138:$IT$20454,4,0))

and if B11 isn't a product in my lookup table, I want it to say
"hardware"
instead of #NA.

"T. Valko" wrote:

What default value would you like?

One way is to leave the cell blank if the lookup value isn't found:

=IF(ISNA(VLOOKUP(..........)),"",VLOOKUP(......... .))

Just replace the "" with whatever default value you want. Just
remember
that
a TEXT value needs to be enclosed in quotes: "text" and a numeric
value
doesn't: 0.

Biff

"NANGO" wrote in message
...
I have quote spreadsheet in which sale rep can fill in a part number
and
the
description, price and type of item it is fills in automatically.

My question is, if they part number isn't in the vlookup table, I
want
a
default answer to fill in the type column instead of #N/A.

Is that possible, and if so, how would I do it?

Thanks









  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default VLookup - can I set my formula to fill in date if item isn't i

At this point, there's nothing wrong with that formula and it should work.
If it doesn't then I suspect there's something wrong with the data.
Incompatible data types? Unseen characters like leading and/or trailing
spaces in the lookup_value cell and/or the lookup_array (first column of the
lookup_table)

I'm absolutely sure that there's nothing wrong with the formula (if you've
corrected it the way I explained).

Biff

"NANGO" wrote in message
...
I'm still doing something wrong? No matter what I enter, I get "hardware"
even if column C is different.

Here's an example vlookup table:

Col A = Part # Col B = Description Col C = Product Type
Row 1
Row 2
Row 3

If I enter a valid part that's in row 1, 2 or 3, I want the product type
from row C, whether it's "hardware", "software", or "maintenance".

Then, if I enter a part number that isn't in row 1, 2 or 3, that's when I
want it to default to "hardware".






"T. Valko" wrote:

=IF(B10="","",IF(ISNUMBER(MATCH(B10,$IK$138:$IT$21 698,0)),VLOOKUP(B10,$IK$138:$IT$21698,8,0),"Hdwr/Sftwr"))

Any thoughts?


The 2nd argument in MATCH *MUST* be a 1 dimensional array:

MATCH(B10,$IK$138:$IT$21698,0)

Change it to:

MATCH(B10,$IK$138:$IK$21698,0)

Biff

"NANGO" wrote in message
...
I must be doing something wrong, because even the product is in my list
and
should fill in the type of the item it still puts "hardware" as
default,
when
some of them are not software.

I'm trying to get this to put "hardware" as default when the part
number
they enter is not in my vlookup table. Does that make sense?

Here's the formula I tried (it's changed because my columns & rows have
expanded since my last e-mail).

=IF(B10="","",IF(ISNUMBER(MATCH(B10,$IK$138:$IT$21 698,0)),VLOOKUP(B10,$IK$138:$IT$21698,8,0),"Hdwr/Sftwr"))

Any thoughts? Thanks!

"T. Valko" wrote:

Try this:

=IF(B11="","",IF(ISNUMBER(MATCH(B11,$IO$138:$IO$20 454,0)),VLOOKUP(B11,$IO$138:$IT$20454,4,0),"Hardwa re"))

Biff

"NANGO" wrote in message
...
Here is my formula:

=IF(B11="","",VLOOKUP(B11,$IO$138:$IT$20454,4,0))

and if B11 isn't a product in my lookup table, I want it to say
"hardware"
instead of #NA.

"T. Valko" wrote:

What default value would you like?

One way is to leave the cell blank if the lookup value isn't found:

=IF(ISNA(VLOOKUP(..........)),"",VLOOKUP(......... .))

Just replace the "" with whatever default value you want. Just
remember
that
a TEXT value needs to be enclosed in quotes: "text" and a numeric
value
doesn't: 0.

Biff

"NANGO" wrote in message
...
I have quote spreadsheet in which sale rep can fill in a part
number
and
the
description, price and type of item it is fills in automatically.

My question is, if they part number isn't in the vlookup table, I
want
a
default answer to fill in the type column instead of #N/A.

Is that possible, and if so, how would I do it?

Thanks











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
Item numbers result in item description in next field in Excel Cheryl MM Excel Worksheet Functions 1 February 20th 07 03:51 PM
automatically insert date when I scan an item GregB Excel Discussion (Misc queries) 3 February 15th 07 05:47 PM
Fill in form to type Item descrictions and costs and fill in funct cradino Excel Worksheet Functions 0 July 16th 06 08:44 PM
sum item within certain date range kwong Excel Discussion (Misc queries) 3 August 15th 05 11:46 AM
Max Date and Item - How to get in one sheet ? [email protected] Excel Worksheet Functions 5 April 21st 05 05:45 PM


All times are GMT +1. The time now is 02:42 PM.

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

About Us

"It's about Microsoft Excel"