Use Excel to return a single value based on a range?

falseadvertise

New Member
Joined
May 12, 2011
Messages
10
I need to pull a value from one sheet and put it on another based on a range of 1-40.

In column F I have F4:F43 (Total 40).
In Column A I have A4:A43 (Total 40).

What i need to do is return the value from A to a separate sheet based on the value in F. This is made difficult because currently column F is listed in order from 1-40. I will need to sort column F regularly and need the updates to reflect the changes.

Ex. - I am going to sort largest to smallest or smallest to largest and still need the same value in column A that is associated with the similar number in column F. So column F might say '1' (F4) and column A will say 'TOP 1' (A4) then i sort largest to smallest and F4 now says '40' and A4 now says 'TOP 40'. Whichever way i sort, i need my cell on the next sheet (assume sheet2!H1) to say the word 'TOP 1' and i need sheet!2H40 to say 'TOP 40'.

I can get an if statement to work if i do not sort the columns but when i do sort them it looses its consistency.

An equation that works before a sort:
=IF(Sheet1!F4=1,Sheet1!A4,"")

The equation i tried but wont work:
=IF(Sheet1!F4:F43=1,Sheet1!A4,"")

the problem is the Sheet1!F4:F43

Any ideas??
 
Glenn,

I eventually figured out that the same formula would work (Busy day yesterday). I thought having the same values would just return any number that matched.

Thanks again for the help!
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top