Use Excel to return a single value based on a non-unique range?

falseadvertise

New Member
Joined
May 12, 2011
Messages
10
I posted a similar question a week ago and had a great answer.
The variables have changed slightly here and it changed the way the formula has to be written.

In the old question all my values were unique so a MATCH function was appropriate. Now i have one set of strictly unique variables (column G) and one set of variables that can range from 0-5 (column E).

I think something like a vlookup may be more appropriate but i am not very familiar with them.


My Problem...

I need to pull a value from one sheet and put it on another based on a range of 1-40.

In column E I have E4:E43 (Total 40). All values between 0 and 5.
In Column G I have G4:G43 (Total 40). Values 1 - 40.

What i need to do is return the value from E to a separate sheet based on the value in G. The values in G are all unique (a number from 1-40) but the values on E are a range from 1-5 so i don't think a MATCH function is appropriate.

The reason this is important is because i will need to sort the values in the main sheet based high to low or low to high but the values will change regularly. When i sort the main sheet i need to make sure the second sheet stays constant. (this sheet feeds my matrix)

I might have several cells in my E column that are 3 but only one cell in my G column that is 3.

Ex.

E G
2 1
4 2
1 3
2 4
3 5
2 6
4 7

and so on...

When i sort column E from High to low, i need my second sheet to look exactly the same as before i sorted the main sheet. However, when i sort column E, column G is also going to rearrange itself. On the second sheet, the cells should stay constant. Column G is the base on both sheets.


I hope this was clear,

Any Ideas???
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
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