Ask Your Question
0

What is the method to extract two particular values from a column while having another column with a shared value?

asked 2022-05-18 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-08-18 18:00:00 +0000

lakamha gravatar image

The method to extract two particular values from a column while having another column with a shared value is to use a combination of the IF and INDEX functions.

Here are the steps:

  1. Identify the columns that contain the shared value and the values to be extracted.
  2. Create an IF formula that checks whether the shared value in the first column matches the desired value.
  3. Use the INDEX formula to extract the values from the second column corresponding to the matched rows in the first column.

Here's an example formula:

=INDEX(B2:B10,IF(A2:A10="Shared Value",ROW(A2:A10)-ROW(A2)+1))

This formula will extract values from column B that correspond to the rows where "Shared Value" is found in column A.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-05-18 11:00:00 +0000

Seen: 9 times

Last updated: Aug 18 '21