ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sumproduct (https://www.excelbanter.com/excel-discussion-misc-queries/47904-sumproduct.html)

John997

Sumproduct
 
In sheet1, I have 2 columns, column A is weeks numbered 1:52, & column B are
numbers. Ex: column A38 is the week number "38", column B38 has "25".

My report is sheet2. When I enter a week number in A1, I want the
corresponding number from sheet1, column B (in this example, "25") to display
in column B1. No matter what week number I enter, I need the correct
corresponding week number from sheet one. Thanks for any help.

Bryan Hessey


Hi,

I presume 'Ex' meant Example, and '38' was in Cell A38 and '25' was in
cell B38

In cell B1 of Sheet2 put
=VLOOKUP(A1,Sheet1!A1:B52,2,FALSE)

Hope this helps



John997 Wrote:
In sheet1, I have 2 columns, column A is weeks numbered 1:52, & column
B are
numbers. Ex: column A38 is the week number "38", column B38 has "25".

My report is sheet2. When I enter a week number in A1, I want the
corresponding number from sheet1, column B (in this example, "25") to
display
in column B1. No matter what week number I enter, I need the correct
corresponding week number from sheet one. Thanks for any help.



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=471987



All times are GMT +1. The time now is 07:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com