开发者

how to reference the other sheet in excel?

开发者 https://www.devze.com 2023-03-28 08:30 出处:网络
sheet1 have some data as the following: ABCD 1 numbernameunitprice 21001applebox20.00 3 1002peachbox10.00

sheet1 have some data as the following:

      A          B         C             D
    1 number    name     unit         price

    2  1001      apple    box           20.00   

    3 1002        peach   box          10.00  

  ..................

now on the sheet2

      A          B         C             D
    1 number    name     unit         price

    2  1001            开发者_StackOverflow社区  

    3  

  ..................

now, if i type 1001 in A2 cell, i want the apple,box,20.00 can auto typed into the cells.thank you.


If your range in sheet1 is a1:d3, in sheet2 cell b2 you have to type

=CERCA.VERT(A2;Foglio1!$A$1:$D$3;2;FALSO)

in cell b3

=CERCA.VERT(A2;Foglio1!$A$1:$D$3;3;FALSO)

and in cell b4

=CERCA.VERT(A2;Foglio1!$A$1:$D$3;4;FALSO)

These are italian formulas.

I think that in english version it becomes something like this:

=VLOOKUP(A2,Sheet1!$A$1:$D$3,2,FALSE)

and so on for the other cells.


In cell B1

=If(IsError(Vlookup(A1, Sheet2!A:D, 2, false), "", Vlookup(A1, Sheet2!A:D, 2, false))

In Cell C1

=If(IsError(Vlookup(A1, Sheet2!A:D, 3, false), "", Vlookup(A1, Sheet2!A:D, 3, false))

In Cell D1

=If(IsError(Vlookup(A1, Sheet2!A:D, 4, false), "", Vlookup(A1, Sheet2!A:D, 4, false))
0

精彩评论

暂无评论...
验证码 换一张
取 消