If/then formula using multiple columns/sheets?

aware073

Board Regular
Joined
Jun 5, 2015
Messages
54
I am working with two separate data sheets. One lists all the products in one column with pricing usage and vendors in columns next to it. In the new data sheet that I'm creating, I listed all the vendors in separate columns with the part numbers all in column A. I need to show (by highlighting or inserting a character so that I can later highlight) all the products in the list that were bought by a specific vendor. For example, when you scroll to the right, I want the boxes to be highlighted in yellow underneath the vendor in line with the product we've bought from them. The point is to be able to have the vendor re-quote these materials.


Product ID Vendor 1 Vendor 2 Vendor 3 Vendor 4 Vendor 5 Vendor 6 Vendor 7 Vendor 8
Product 1 *
Product 2
Product 3
Product 4 * *
Product 5
Product 6
Product 7 *

Also, in the first data sheet the products may be listed multiple times if they are being bought from more than one vendor.
Something like if on sheet1, E3 is greater than or equal to 0 then enter * in the matching box from sheet 2 Under that vendor across from that product..

This ones really throwing me for a loop.. Thanks in advance!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Can you provide a sample spreadsheet, remove any sensitivie data.

You cant attach files on this forum.
Upload the file to an online storage site then place a link to it on this forum.
 
Upvote 0
Can you provide a sample spreadsheet, remove any sensitivie data.

You cant attach files on this forum.
Upload the file to an online storage site then place a link to it on this forum.
Sheet 1

Excel 2010
ABCDEFGHIJKLM
1MaterialManufacturer Part No.Material DescriptionPlantBuMUnrestricted2014 Usage2015 UsageValue UnrestrictedLPPDateVendor
22000000100601547-0075OVERLOAD,JOY2700EA110.76
320000001 Total10011
42000000200601857-0050TERMINAL,JOY2700EA40
520000002 Total40
62000000300601857-0054TERMINAL,JOY2700EA51.70
720000003 Total5
82000000400005328-0003CHAIN, CONNECTOR, OFFSET2100EA426.36
92000000400005328-0003CHAIN, CONNECTOR, OFFSET5800EA00.00
1020000004 Total4
112000000500005328-0114CHAIN,3/4"P,JOY2300EA00.00
1220000005 Total0
132000000600007999-0003BOOT,JOY2100EA2-4213.89$ 7.0210/17/2012300390JOY GLOBAL UNDERGOUND MINING LLC
142000000600007999-0003BOOT,JOY5800EA0020.00
1520000006 Total2
162000000700010237-0000SPRING,EXTENSION,FOOT PEDAL,JOY2100EA172011172.72$ 10.222/3/2015300390JOY GLOBAL UNDERGOUND MINING LLC
172000000700010237-0000SPRING,EXTENSION,FOOT PEDAL,JOY2300EA5-1041.68$ 10.423/19/2015300390JOY GLOBAL UNDERGOUND MINING LLC
182000000700010237-0000SPRING,EXTENSION,FOOT PEDAL,JOY2700EA51050.20$ 9.924/16/2014300390JOY GLOBAL UNDERGOUND MINING LLC
192000000700010237-0000SPRING,EXTENSION,FOOT PEDAL,JOY5800EA00.00
2020000007 Total27
2120000008HAND CLEANER, GO JO2100EA00.00$ 13.187/29/2013300242FAIRMONT SUPPLY COMPANY
FE Inv with LPP


Sheet 2

Excel 2010
ABCDEFGHIJKLMNO
1300003300013300020300026300030300047300048300054300055
2Material No.Manufacturer No.Description2014 Usage2015 UsageLowest LPPABSOLUTE INNOVATIONSASSOCIATED PALLET INCBAKER&SON'S PLUMBING INCBATTERY SPECIALISTSBELT TECH INDUSTRIAL INCBOBCAT OF SPRINGFIELDBODINE ELECTRICBRAKE SUPPLY COMPANY INCBRANDEIS MACHINERY & SUPPLY CO
32000000100601547-0075OVERLOAD,JOY--
42000000200601857-0050TERMINAL,JOY--
52000000300601857-0054TERMINAL,JOY--
62000000400005328-0003CHAIN, CONNECTOR, OFFSET--
72000000500005328-0114CHAIN,3/4"P,JOY--
82000000600007999-0003BOOT,JOY-44
92000000700010237-0000SPRING,EXTENSION,FOOT PEDAL,JOY2011$ 9.92
1020000008HAND CLEANER, GO JO--
Material & Vendors



OK so in sheet 2 I just need an X if the product in column A has ever been bought by the vendors in the top row.. This information is in column A and L of Sheet 1.
 
Last edited:
Upvote 0
So I've got the formula where it pulls an X if the value in sheet 1 column J is greater than zero.
I just need to add something to it that will make it only pull that X if the vendor in column M (Or L, which is the vendor code) matches the vendor column in row 1 & 2 of sheet 2.

=IF(VLOOKUP(A6,'FE Inv with LPP'!A:L,10,FALSE)>0,"X"," ")


An IF Lookup? Match? Another Vlookup?!

Almost there.. I know this is an easy one for you excel gurus.. someone help a girl out??? :eeek:
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,157
Messages
6,170,419
Members
452,325
Latest member
BlahQz

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