Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
pol pol is offline
external usenet poster
 
Posts: 129
Default to write a formula to findout itemcode,discount from another works

I have two excel sheet
1. Itemdetails.xls
2. Discount.xls.
The itemdetails.xls contain the following column.
1. itemcode[A1]
2. Description [B1]
3. Rate [C1]
4. Rebate [D1]
The discount.xls contain the following column
1. itemcode[A1]
2. Rebate [b1]
Now the cursor standing at itemdetails.xls column D2. Here I need to have
a formula to find out the rebate from discount.xls for the corresponding
ipcode and to write in D2.

If value of itemdetails .itemcode[A1] EXIST IN discount.itemcode, then
itemdetails.REBATE=DISCOUNT.REBATE of the corresponding ipcode. Please help
me to write the formula in cell D2 of itemdetails

Please help
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default to write a formula to findout itemcode,discount from another works

Assume that both workbooks: Itemdetails.xls and Discount.xls
are open at the same time

Assume that your data is in Sheet1 in both books
(you must always specify the sheetnames involved)

Then in Itemdetails.xls,
in Sheet1,
place in D2: =VLOOKUP(A2,[Discount]Sheet1!A:B,2,0)
Copy D2 down to extract as required

For a neater look, you could use an ISNA error trap
to return blanks: "" for unmatched cases:
In D2: =IF(ISNA(VLOOKUP(..)),"",VLOOKUP(..))

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"pol" wrote:
I have two excel sheet
1. Itemdetails.xls
2. Discount.xls.
The itemdetails.xls contain the following column.
1. itemcode[A1]
2. Description [B1]
3. Rate [C1]
4. Rebate [D1]
The discount.xls contain the following column
1. itemcode[A1]
2. Rebate [b1]
Now the cursor standing at itemdetails.xls column D2. Here I need to have
a formula to find out the rebate from discount.xls for the corresponding
ipcode and to write in D2.

If value of itemdetails .itemcode[A1] EXIST IN discount.itemcode, then
itemdetails.REBATE=DISCOUNT.REBATE of the corresponding ipcode. Please help
me to write the formula in cell D2 of itemdetails

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
how findout max data like text, any word in excel how findout max data like text, any word Excel Discussion (Misc queries) 2 January 16th 09 11:25 AM
findout the difference between to time; not date Shahul Excel Discussion (Misc queries) 1 March 29th 08 11:49 AM
Name Findout From a interval range mun04 Excel Worksheet Functions 2 March 5th 06 10:52 AM
I need a formula to get a 15% discount from a # like $452,472.00 tia Charts and Charting in Excel 1 December 2nd 05 04:06 PM
formula discount need formula as soon as posible New Users to Excel 3 June 10th 05 12:12 PM


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