Match Multiple Items based on Multiple Criteria

MRobi

New Member
Joined
Oct 26, 2017
Messages
7
I'm looking for some help on a sales pipeline report I'm working on.

I have 1 worksheet that our sales team can enter their raw data and edit it as they move through different phases of the sales pipeline from Prospect to Quoted and finally to sold. On another worksheet, I'm trying to pull only the sold data in any given month (I have a drop down I can select for example June 2017, Oct 2017, etc).

My main columns are:
A - Pipeline Phase (Prospect, Quoted, Follow Up, Sold, Sold Split)
B - Date (Various months)
C - Company information
D - Sale Type (New Client, Existing Client, National Client)
E - Dollar Amount

So what I'm trying to do exactly is find a formula that will match Pipeline Phase - Sold, Date - Oct, Sale Type - New Client. One it's returned all that move on to Existing Client and then National Client. Then I need it to move through the 3 sales types for Pipeline Phase - Sold Split.

I can get it to return the data using a helper cell and vlookup, but with that it doesn't return in any sort of order and I end up with a big gap in space between sold and sold split because I have the vlookup formula for sold in the first 50 rows, then sold split in the next 50 rows.

I'm assuming some sort of index/match formula but my knowledge on those is limited.
 
1. Please don't "Reply With Quote" unless you need to refer to a specific part of a post - otherwise it's just clutter. Use "Reply" instead

2. We both gave you answers that exactly duplicated the sample answers you showed. You say now you wanted it sorted - based on what?

maybe show some different samples that indicate exactly what you want?
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
2. We both gave you answers that exactly duplicated the sample answers you showed. You say now you wanted it sorted - based on what?
I still don't see how a SUMIF formula can be substituted for an INDEX/MATCH. I don't see how SUMIF will return the words "Company F" or "New" into a cell on Sheet2. I'm not an excel master, but to my knowledge a SUMIF will only return a number. If it's possible for SUMIF to return text I'm eager to learn how that works.

AhoyNC's method works for bringing the data over to Sheet 2 and is along the realms of how I envisioned it needing to be done. I'd just like it organized now.

As for sorting...

Sorted by:
Sold
Sold Split

Then by:
National
New
Existing

Then by: Dollar amount largest to smallest (not necessary but would be a cool little addon)

I know the sorting can be done with a macro but I prefer to avoid those if possible because I know a large number of these guys will not enable macros and then complain when it's not sorted.
 
Upvote 0
Is it possible to sort your data as it's entered on the data sheet. I believe trying to sort with formulas is going to be difficult especially since
National
New
Existing
is not in alphabetical order.
 
Upvote 0
I still don't see how a SUMIF formula can be substituted for an INDEX/MATCH. I don't see how SUMIF will return the words "Company F" or "New" into a cell on Sheet2

You are correct, it wont, it will only return a numeric answer. My read on your question was that that was the return you wanted, based on what you inputted in terms of criteria.

I have taken another stab at this, and put together a table that pulls ALL unique company names, then I have headings for each Type (new etc), broken down into Phase. See if this will help at all?
Your sample data...
A​
B​
C​
D​
E​
2​
Pipeline PhaseDateCompanySale TypeAmount
3​
Prospect9/1/2017Company ANational$500
4​
Quoted9/1/2017Company BNew$450
5​
Sold9/1/2017Company CNew$550
6​
Following Up10/1/2017Company DExisting$700
7​
Sold Split10/1/2017Company EExisting$1,500
8​
Sold10/1/2017Company FNew$750
9​
Sold10/1/2017Company GNational$600
10​
Sold11/1/2017Company HExisting$675

The extract...
G​
H​
I​
J​
K​
L​
M​
N​
O​
P​
Q​
R​
S​
T​
U​
V​
1​
10/1/2017​
2​
New​
Existing​
national​
3​
CompanyProspectQuotedFollowing UpSoldSold SplitProspectQuotedFollowing UpSoldSold SplitProspectQuotedFollowing UpSoldSold Split
4​
Company A
5​
Company B
6​
Company C
7​
Company D
700​
8​
Company E
1500​
9​
Company F
750​
10​
Company G
600​
11​
Company H
G1 would be where you enter your date.
G4=IFERROR(INDEX($C$3:$C$10,MATCH(0,INDEX(COUNTIF($G$3:G3,$C$3:$C$10),0,0),0)),"")
copied down
H4=IFERROR(INDEX($E$3:$E$10,MATCH(H$3&$G$1&$G4&$H$2,INDEX($A$3:$A$10&$B$3:$B$10&$C$3:$C$10&$D$3:$D$10,0),0)),"")
copied down, and then across for the 1st Type (new)
M4=IFERROR(INDEX($E$3:$E$10,MATCH(M$3&$G$1&$G4&$M$2,INDEX($A$3:$A$10&$B$3:$B$10&$C$3:$C$10&$D$3:$D$10,0),0)),"")
copied down, and then across for the 2nd Type (Existing)
R4=IFERROR(INDEX($E$3:$E$10,MATCH(R$3&$G$1&$G4&$R$2,INDEX($A$3:$A$10&$B$3:$B$10&$C$3:$C$10&$D$3:$D$10,0),0)),"")
copied down, and then across for the 3rd Type (national)
 
Upvote 0
Hi,

MRobi Did you try Pivot table ?

Date01/10/17
Sale TypeCompanyAmountPipeline Phase
ExistingCompany E$1500Sold Split
NationalCompany G$600Sold
NewCompany F$750Sold

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
@AhoyNC We could arrange Existing, National, New alphabetically if it makes it actually possible to auto sort. At least that way each type would be all together.
@FDibbins That's getting closer, but the ones that don't match sold and the date I don't want showing up at all. So this example Company A, B and C would not be coming up on the export sheet. AhoyNC's formula works perfectly to filter out the ones that don't
@admiral100 The idea of a pivot table did come to mind and would probably be able to do what I'm looking for. But I can't for the life of me get it to format properly (somehow all the data just lays out horizontally over 100's of columns). Also don't they need to be manually refreshed each time? I know they can be set to refresh when the file is opened but I know these guys are going to be looking for real-time as they enter.

My knowledge on pivot tables is very limited.
 
Upvote 0

Forum statistics

Threads
1,216,222
Messages
6,129,589
Members
449,520
Latest member
TBFrieds

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