IF/IF and then...

jjmktg

New Member
Joined
Nov 25, 2010
Messages
9
I have a "master" spreadsheet with customer number, product numbers and several columns of other information. I sent it out to reps and asked them to update only their customers, and only the product use column if that had changed. So what I need to do is open the returned spreadsheet and post only the changes.

On the master spreadsheet I need a formula to say IF you find the exact customer number match AND you find the exact prodcut number match for the customer, THEN put the use in the cell. The master has all 27000 rows and the returned spreadsheets usually have only about 10-20.

Something like =if(customer number matches)AND IF(product number matches)THEN put in the new customer use.

How do I format that?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Without seeing your data it's difficult to give you specific advice but I would approach this by creating a unique key for each record in your master worksheet by concatenating the customer number and product number in an additional column somewhere and doing the same to the returned worksheets.

Then you can do something like:-
Code:
=vlookup(uniquekeyinmastersheet,datainreturnedsheet,columnwithusefigure,false)

Check out the VLOOKUP function and try using it against a small sample of dummy data to make sure you're happy with the way it works, then consider my suggestion about creating unique keys.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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