SUBSTITUTE - ?

Status
Not open for further replies.

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,786
Office Version
  1. 2016
Platform
  1. Windows
I am using the following formula to look down column B for Left two characters and then down column D or text in D11 and then down column G.

This gives me a result something like this:

Office 1 AAA, BBB, CCC
Office 2 BBB, CCC
Office 3 BBB

I now need the formula to list just one instance:

Office 1 AAA
Office 1 BBB

I have been trying to modify the formula but can't get it to work.

Also, if anyone has time--what does MCONCAT and UNIQUEVALUES do?? I can not find them in the Excel Help file. Just came in the office to ge Walkenbach "Excel 2000 Formulas" so I can see if I can find it in there...

SUBSTITUTE(MCONCAT(UNIQUEVALUES(IF((LEFT('afw-2 Test-Bags'!$B$11:$B$110,2)=D33)*('afw-2 Test-Bags'!$E$11:$E$110=D11),", "&'afw-2 Test-Bags'!$G$11:$G$110,""))),", ","",1)
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
em

for information on Functions use your excel help
- see Function icon
- look under All or Morefunc

N.B. The two functions are part of the Morefunc add-in.
 
Upvote 0
Still havn't figured it out...

I'm basically looking down "Unit_Col" for alpha/numeric text that's in $C$20 then look down "UTC_Col" for LEFT (4) alpha/numeric text that"s in $F$5 and return that single value...

a. UTC_Col range is Sheet1B12:B112
b. Unit_Col range is Sheet1E12:E112
c. C20 is a unit name like "0999ASDF"
d. F5 is a "partial" code name such as "4RR3" the whole code might be "4RR3AB." These codes are in UTC_Col range...

I've tried Substitue and Index still nothing--all I have so far is (Unit_Col=$C$20,LEFT(UTC_Col,4)=$F$5)
 
Upvote 0
Just realized I might not need to look up unit, might be able to just look down UTC Col for the LEFT 4 characters and return the full value--but haven't figured this out either...
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,221,687
Messages
6,161,289
Members
451,695
Latest member
Doug Mize 1024

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