ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Tie cell together (https://www.excelbanter.com/excel-discussion-misc-queries/199194-tie-cell-together.html)

Gemini_Dream

Tie cell together
 
I have a workbook with 2 sheets, the sheet 2 column A is always the same as
sheet 1 column A. I can't put a formula in sheet 2 column B because users
have to enter numbers. When sorting is changed in Sheet 1 column A, how can I
have column B of sheet 2 moved with column A of sheet 2.
--
Gemini_Dream

MyVeryOwnSelf

Tie cell together
 
I have a workbook with 2 sheets, the sheet 2 column A is always the
same as sheet 1 column A. I can't put a formula in sheet 2 column B
because users have to enter numbers. When sorting is changed in Sheet
1 column A, how can I have column B of sheet 2 moved with column A of
sheet 2.


If I understand the question, one way is to use a value in sheet 2 column A
to look up the corresponding row in the newly-sorted sheet 1.

For example, put this in sheet2!B1 and copy downward as far as needed:
=IF(ISNA(VLOOKUP(A1,Sheet1!A:B,2,FALSE)),"",
VLOOKUP(A1,Sheet1!A:B,2,FALSE))
The "IF" part yields an empty result if the lookup value is missing in
sheet1.

It sounds like there's a formula to be applied after the lookup, so wrap
the formula around the one indicated above.

Gemini_Dream

Tie cell together
 
I can't put a formula in sheet 2 column "B" because in this column manuel
entry of data will be made. This is why cells in column "B" of sheet 2 must
be anchor or tie to those in sheet 2 of column A so they follow column "A"
cells as they move.
--
Gemini_Dream


"MyVeryOwnSelf" wrote:

I have a workbook with 2 sheets, the sheet 2 column A is always the
same as sheet 1 column A. I can't put a formula in sheet 2 column B
because users have to enter numbers. When sorting is changed in Sheet
1 column A, how can I have column B of sheet 2 moved with column A of
sheet 2.


If I understand the question, one way is to use a value in sheet 2 column A
to look up the corresponding row in the newly-sorted sheet 1.

For example, put this in sheet2!B1 and copy downward as far as needed:
=IF(ISNA(VLOOKUP(A1,Sheet1!A:B,2,FALSE)),"",
VLOOKUP(A1,Sheet1!A:B,2,FALSE))
The "IF" part yields an empty result if the lookup value is missing in
sheet1.

It sounds like there's a formula to be applied after the lookup, so wrap
the formula around the one indicated above.



All times are GMT +1. The time now is 04:55 AM.

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