Find a value in a table

CFI_Pigman

New Member
Joined
Mar 3, 2015
Messages
6
I've done this before, but it is amazing how you can draw a blank and also not find the file where the formula was used years earlier...I have a sheet where I would like to update a bin list in column J and what is in the bin in column K. Columns A, C and E would be the table where I would apply the bin # to the product. There are multiple columns so I can then calculate volumes.

I simply wish to have column K update any time I change the value in A, C or E...using a formula, not VBA


abcdefghijk
1
BinProductBin ProductBinProductBin ListProduct
2P4CornP6CornP1
3P3WheatP2
4P3Wheat
5P4Corn
6P5
7P6Corn
8P7
9P8
10P9
11P10

<tbody>
</tbody>


Thanks in advance.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
If you have the TEXTJOIN function, in K2 control+shift+enter, not just enter, and copy down:

=TEXTJOIN(", ",TRUE,IF("|"&$A$2:$E$11&"|"="|"&J2&"|",IF(1-($B$2:$F$11=""),$B$2:$F$11,""),""))
 
Upvote 0
Thank you for reply...My apologies I should mention Excel 2010...I do not have the new TextJoin function

Regards
 
Upvote 0
yes...I have 50+ bins with a unique identification. Each bin can never have 2 products in it, but I could have 4 different bins filled with the same product for storage. I don't show it but the products are listed in each row from A2 down and I keep the same product in its specific row...the Bin List is located on the same page. My goal is to input the bin # to identify that I have added product to it or changed its location...then the bin list will automatically update with what product is now in that bin. In the past I've used Sumproduct with Match and Index...but I'm not having success.
 
Upvote 0
In K2 control+shift+enter, not just enter, and copy down:

=IF(COUNTIF($A$2:$F$11,J2),INDEX($A$2:$F$11,MIN(IF($A$2:$F$11=J2,ROW($A$2:$F$11)-ROW($A$2)+1)),1+MIN(IF($A$2:$F$11=J2,COLUMN($A$2:$F$11)-COLUMN($A$2)+1))),"")
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,605
Members
449,038
Latest member
Arbind kumar

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