How can I sort one set of data to match another set of data in Excel?

后端 未结 3 667
天命终不由人
天命终不由人 2021-02-06 07:25

I have a list of data that is not in alphabetical or numerical order. I want to sort a second list of the same date to match the first list. I cannot change the order of the d

3条回答
  •  耶瑟儿~
    2021-02-06 08:22

    You can use VLOOKUP.

    Assuming those are in columns A and B in Sheet1 and Sheet2 each, 22350 is in cell A2 of Sheet1, you can use:

    =VLOOKUP(A2, Sheet2!A:B, 2, 0)
    

    This will return you #N/A if there are no matches. Drag/Fill/Copy&Paste the formula to the bottom of your table and that should do it.

提交回复
热议问题