Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RBG RBG is offline
external usenet poster
 
Posts: 9
Default Vlookup Calculations

Not sure if a Vlookup is the right function but this is my situation: On one
worksheet i have a row of column headers and on the second worksheet i have
the data. I want to compose a formula where I can lookup the column header
from the first worksheet on the second and then if found, take the difference
between two columns on the second spreadsheet.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 772
Default Vlookup Calculations

If you are wanting to do a vlookup using headers and the data is on a set
row, you want to look into the Hlookup function, a lot like vlookup but works
horizontally.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"RBG" wrote:

Not sure if a Vlookup is the right function but this is my situation: On one
worksheet i have a row of column headers and on the second worksheet i have
the data. I want to compose a formula where I can lookup the column header
from the first worksheet on the second and then if found, take the difference
between two columns on the second spreadsheet.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RBG RBG is offline
external usenet poster
 
Posts: 9
Default Vlookup Calculations

Maybe an illustration would better explain what I am trying to: I am trying
to lookup an item from worksheet 1 on worksheet 2 and if found i want to
calculate the difference between gross and net without having to add an
additional column on worksheet 2 for the difference. Thanks

Worksheet 1
Computers Laptops Ipods


Worksheet 2
Item Gross Net
Computers 25 15
Laptops 10 5
Ipods 17 3


"John Bundy" wrote:

If you are wanting to do a vlookup using headers and the data is on a set
row, you want to look into the Hlookup function, a lot like vlookup but works
horizontally.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"RBG" wrote:

Not sure if a Vlookup is the right function but this is my situation: On one
worksheet i have a row of column headers and on the second worksheet i have
the data. I want to compose a formula where I can lookup the column header
from the first worksheet on the second and then if found, take the difference
between two columns on the second spreadsheet.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Vlookup Calculations

If as it seems you only have a single entry for computers etc in your second
sheet then this would work.

=SUMPRODUCT((Sheet3!A1:A10="Computers")*(Sheet3!B1 :B10-Sheet3!C1:C10))

Mike

"RBG" wrote:

Maybe an illustration would better explain what I am trying to: I am trying
to lookup an item from worksheet 1 on worksheet 2 and if found i want to
calculate the difference between gross and net without having to add an
additional column on worksheet 2 for the difference. Thanks

Worksheet 1
Computers Laptops Ipods


Worksheet 2
Item Gross Net
Computers 25 15
Laptops 10 5
Ipods 17 3


"John Bundy" wrote:

If you are wanting to do a vlookup using headers and the data is on a set
row, you want to look into the Hlookup function, a lot like vlookup but works
horizontally.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"RBG" wrote:

Not sure if a Vlookup is the right function but this is my situation: On one
worksheet i have a row of column headers and on the second worksheet i have
the data. I want to compose a formula where I can lookup the column header
from the first worksheet on the second and then if found, take the difference
between two columns on the second spreadsheet.


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
N/A results on vlookup with time calculations Freida Excel Worksheet Functions 4 October 22nd 07 06:09 PM
Calculations Rich D Excel Discussion (Misc queries) 2 October 2nd 07 06:09 PM
Calculations Chev320 Excel Discussion (Misc queries) 1 July 23rd 07 08:52 PM
how many calculations? Amie Excel Worksheet Functions 0 April 21st 06 08:04 PM
Calculations Josh O. Setting up and Configuration of Excel 1 February 14th 05 11:09 PM


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