Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike
 
Posts: n/a
Default Using an "IF" Function between 2 Worksheets

On one work sheet I have 3 columns listing an item #, the product description
& the price. On the other worksheet is a sales bill where products can be
listed and tallied. Is there an IF formula that allows me to type in any
item
number on the sales bill and have the product description and Price
automatically appear in the adjacent 2 cells. This would be a function I
want to repeat down the Sales Bill until the customer is done selecting
Items. This function, If possible, would save time in retyping Item
descriptions and/or using the cut/copy cell feature. I would like to type a
number in Column "A" and have the product description automatically appear in
Colun "B" and the price automatically appear in Column "C". VLOOKUP does
not appear to work.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Using an "IF" Function between 2 Worksheets

If =vlookup() doesn't work, it may be because your key data doesn't really
match.

Debra Dalgleish has some notes at:
http://www.contextures.com/xlFunctions02.html
and troubleshooting notes at:
http://www.contextures.com/xlFunctions02.html#Trouble

But something like:
=vlookup(a2,sheet2!a:c,2,false)

should work

You may want to enhance it a bit:

=if(a2="","",if(iserror(vlookup(a2,sheet2!a:c,2,fa lse)),"Missing",
if(vlookup(a2,sheet2!a:c,2,false)="","",vlookup(a2 ,sheet2!a:c,2,false))))





Mike wrote:

On one work sheet I have 3 columns listing an item #, the product description
& the price. On the other worksheet is a sales bill where products can be
listed and tallied. Is there an IF formula that allows me to type in any
item
number on the sales bill and have the product description and Price
automatically appear in the adjacent 2 cells. This would be a function I
want to repeat down the Sales Bill until the customer is done selecting
Items. This function, If possible, would save time in retyping Item
descriptions and/or using the cut/copy cell feature. I would like to type a
number in Column "A" and have the product description automatically appear in
Colun "B" and the price automatically appear in Column "C". VLOOKUP does
not appear to work.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike
 
Posts: n/a
Default Using an "IF" Function between 2 Worksheets

Thanks Dave. That tip solved my problem. One more question. Do you know if
their is a way to get the information that I am pulling from the first work
sheet to copy in the second with the same font and color ?

"Dave Peterson" wrote:

If =vlookup() doesn't work, it may be because your key data doesn't really
match.

Debra Dalgleish has some notes at:
http://www.contextures.com/xlFunctions02.html
and troubleshooting notes at:
http://www.contextures.com/xlFunctions02.html#Trouble

But something like:
=vlookup(a2,sheet2!a:c,2,false)

should work

You may want to enhance it a bit:

=if(a2="","",if(iserror(vlookup(a2,sheet2!a:c,2,fa lse)),"Missing",
if(vlookup(a2,sheet2!a:c,2,false)="","",vlookup(a2 ,sheet2!a:c,2,false))))





Mike wrote:

On one work sheet I have 3 columns listing an item #, the product description
& the price. On the other worksheet is a sales bill where products can be
listed and tallied. Is there an IF formula that allows me to type in any
item
number on the sales bill and have the product description and Price
automatically appear in the adjacent 2 cells. This would be a function I
want to repeat down the Sales Bill until the customer is done selecting
Items. This function, If possible, would save time in retyping Item
descriptions and/or using the cut/copy cell feature. I would like to type a
number in Column "A" and have the product description automatically appear in
Colun "B" and the price automatically appear in Column "C". VLOOKUP does
not appear to work.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Using an "IF" Function between 2 Worksheets

You (or a macro) have to do copy|paste (or paste special|formats).

Formulas return values--not formatting.



Mike wrote:

Thanks Dave. That tip solved my problem. One more question. Do you know if
their is a way to get the information that I am pulling from the first work
sheet to copy in the second with the same font and color ?

"Dave Peterson" wrote:

If =vlookup() doesn't work, it may be because your key data doesn't really
match.

Debra Dalgleish has some notes at:
http://www.contextures.com/xlFunctions02.html
and troubleshooting notes at:
http://www.contextures.com/xlFunctions02.html#Trouble

But something like:
=vlookup(a2,sheet2!a:c,2,false)

should work

You may want to enhance it a bit:

=if(a2="","",if(iserror(vlookup(a2,sheet2!a:c,2,fa lse)),"Missing",
if(vlookup(a2,sheet2!a:c,2,false)="","",vlookup(a2 ,sheet2!a:c,2,false))))





Mike wrote:

On one work sheet I have 3 columns listing an item #, the product description
& the price. On the other worksheet is a sales bill where products can be
listed and tallied. Is there an IF formula that allows me to type in any
item
number on the sales bill and have the product description and Price
automatically appear in the adjacent 2 cells. This would be a function I
want to repeat down the Sales Bill until the customer is done selecting
Items. This function, If possible, would save time in retyping Item
descriptions and/or using the cut/copy cell feature. I would like to type a
number in Column "A" and have the product description automatically appear in
Colun "B" and the price automatically appear in Column "C". VLOOKUP does
not appear to work.


--

Dave Peterson


--

Dave Peterson
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
VBA function for "Mean" using Array as argument ASokolik Excel Worksheet Functions 21 March 28th 06 10:05 PM
Wild Characters in "IF" function jakar Excel Discussion (Misc queries) 3 November 17th 05 05:35 PM
How do I group worksheets (Lotus 123 function is "Sheet>Group Shee jaking Excel Worksheet Functions 2 August 30th 05 02:09 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 06:24 AM.

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"