Comparing two ranges and returning a value from a third range

cologeek

New Member
Joined
Jun 6, 2007
Messages
20
Hello,

I have a row with ten cells populated with names on one worksheet (columns B-K). One a second worksheet I have several hundred names in column A and values next to them in column B.

Is it possible to compare the names in the row against the names on the second worksheet and return the lowest value?

I would like to put a formula next to each row (in column A on the first worksheet) that reads across the row and returns the lowest value.

I have tried several array formulas and have been unable to figure out how to do this.

Thank you in advance for your help!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Are the several hundred names in column A all different?

If so perhaps try this formula in A2

=MIN(SUMIF(sheet2!A$1:A$500,B2:K2,Sheet2!B$1:B$500))

confirmed with CTRL+SHIFT+ENTER and copied down
 
Upvote 0
Thank you Barry. It doesn't seem to be working as I'm getting zeros as a result - even after I apply the ctrl-shift-enter.
 
Upvote 0
Is B2:K2 fully populated, does each name have a value associated with it?

If not you could try ignoring zeroes with this amendment

=MIN(IF(SUMIF(Sheet2!A$1:A$500,B2:K2,Sheet2!B$1:B$500)<>0,SUMIF(Sheet2!A$1:A$500,B2:K2,Sheet2!B$1:B$500)))

although that would ignore zero when it might be a legitimate result......
 
Upvote 0

Forum statistics

Threads
1,214,416
Messages
6,119,386
Members
448,891
Latest member
tpierce

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