Unique values in If driven mconcat equation

Jimmydaux

New Member
Joined
Oct 4, 2011
Messages
12
Hello all!

This site has been quite helpful in getting me to this point in my equation, but I have come to a personal impasse.

=SUBSTITUTE(MCONCAT(IF('Incremental Deliveries'!$J:$J=A4,"; "&'Incremental Deliveries'!$C:$C,"")),"; ","",1)

This yields all of the information that I need, presented correctly, but I need to display only the unique values. I have tried to use the formula =Uniquevalues in many different iterations and locations, but cannot seem to get it to do what I need. I generally just returns "#Value".

Can anyone help me with this formula?
 
Barry,

Both of the equations to exclude values including R, include the word FALSE at the beginning. Any idea why that is or more importantly, how to avoid it?

FALSE107992 ; 110402 ; 110429 ; 110456 ; 110462 ; 110467 ; 110472
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
OK, sorry, yes, add in a blank to prevent FALSE returns (in red)

=SUBSTITUTE(MCONCAT(UNIQUEVALUES(IF('Incremental Deliveries'!$J$1:$J$2000=B5,IF(RIGHT('Incremental Deliveries'!$C$1:$C$2000)<>"R","; "&'Incremental Deliveries'!$C$1:$C$1000,""),""),1)),"; ","",1)
 
Upvote 0
You beat me to it!

I found that on my own and got really excited that I was going to be able to post the solution that I found so i wouldnt look like such an excel ignoramous. I can never beat the expert :)

Thank you for your quick responses.
 
Upvote 0
Barry,


I tried to apply the portion of the equation that limited results to those not containing "R"s to another equation but it doesnt seem to be working. In using the * as an "and" function, is it possible to do more than two criteria? The equation I am trying to use is:


=("Completed PO's: ")&SUBSTITUTE(MCONCAT(UNIQUEVALUES(IF((INDIRECT("Receipts!$M$2:$M$1000")=B6)*(INDIRECT("Receipts!$P$2:$P$1000")=0)*(RIGHT(INDIRECT("'Incremental Deliveries'!$C$1:$C$2000"))<>"R"),"; "&INDIRECT("Receipts!$C$2:$C$1000"),""),1)),"; ","",1)

Is this equation getting too complicated?
 
Upvote 0
Barry,


I tried to apply the portion of the equation that limited results to those not containing "R"s to another equation but it doesnt seem to be working. In using the * as an "and" function, is it possible to do more than two criteria? The equation I am trying to use is:


=("Completed PO's: ")&SUBSTITUTE(MCONCAT(UNIQUEVALUES(IF((INDIRECT("Receipts!$M$2:$M$1000")=B6)*(INDIRECT("Receipts!$P$2:$P$1000")=0)*(RIGHT(INDIRECT("'Incremental Deliveries'!$C$1:$C$2000"))<>"R"),"; "&INDIRECT("Receipts!$C$2:$C$1000"),""),1)),"; ","",1)

Is this equation getting too complicated?

Why do you need INDIRECT here?
 
Upvote 0
Why do you need INDIRECT here?

The macro that I run to format the raw data was throwing off those equations. I need it to point to those ranges and not dynamically adjust to the source data as the macro does its work.
 
Upvote 0
The macro that I run to format the raw data was throwing off those equations. I need it to point to those ranges and not dynamically adjust to the source data as the macro does its work.

Could you name those INDIRECT bits and see whether runs correctly with them?

Example:

Mrange which refers to:

=INDIRECT("Receipts!$M$2:$M$1000")

If this appears feasible, the formula could be made more readable/manageable.
 
Upvote 0
I woulndn't mind simplifying that equation at all :) Don't the named ranges dynamically update as well? When I name a range that includes columns A:E, once my macro runs it will change the range to B:AG. I basically need it to point to the "post macro" reference, which is why Barry suggested the "Indirect" so it wouldn't change the reference at all.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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