SUM IF/IF/VLOOK up combined.

uzzimacro

New Member
Joined
Feb 2, 2018
Messages
28
Hi all..

I need to pull in some data across sheets and having a hard time..

Essentially I'm working on two data sheets. For sheet 2, I want to pull in a number from sheet 1 if it meets 2 criteria, A) if the name matches say cell A1 and B) if the colour matches O1, then for it to look into sheet 1 and pull in if it meets both criteria.

appreciate the 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"
not sure why the sumif
need a clearer definition of the issue - perhaps a sample
will there be more than 1 match
otherwise an index/match should work
pull in what ?

but i'm not 100% sure of the cells - is the name in A1 and B1 identical
and what cells

something like
=INDEX(Sheet1!A1:A100,MATCH(C2&D2&E2,Sheet1!B1:B100&Sheet1!C1:C100&Sheet1!D1:D100,0))

i have just putin 1 sheet for clarity here
Book2
ABCDEFGHIJKL
1namename1colour
2123fred1bloggs1bluefred4bloggs4blue126
3124fred2bloggs2red
4125fred3bloggs3green
5126fred4bloggs4blue
6127fred5bloggs5green
Sheet1
Cell Formulas
RangeFormula
L2L2=INDEX(A2:A6,MATCH(H2&I2&J2,B2:B6&C2:C6&D2:D6,0))


Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0

Forum statistics

Threads
1,215,248
Messages
6,123,869
Members
449,130
Latest member
lolasmith

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