Problem finding the right formulae - URGENT!

mledu

New Member
Joined
Jul 16, 2012
Messages
14
Hi everyone!
I have a huge problem that is really making me crazy.

What I want excel to do is basically look up and create a list for all the values that start with the first 6 numbers of the class code that has to serve as a reference. I highlighted an example of what i would like excel to do for the first line. There are more than 36 thousand lines to go through for each 664 Class code. Many Commodity codes as you may guess will not be picked up by the formulae since they don't match with any of the class codes i selected for my work.

Here is a sample of the file I want to work with:

viewer.php
[/URL][/IMG]

Help me I am desperate, if someone could give me the exact formula instead of just a hint I would worship them forever!

max.
 
Last edited:
max

I don't know if this can be done with a formula, not much of a formula person though.

You could use filters via VBA code.

I'd post an example but you've posted an image rather than actual data so there's nothing to work with.

Rick

I don't think the order of the data really matters.


I am going to post the spread sheet if you don't mind workingwith it, how can i do that on the forump please?
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
The starting class code has been dictated manually by me out of the complete list of Class code. There used to be 3058 Class codes at first only 664 remaining. I can show you a print screen of the orignial file if you want.

Sorry, I am still confused. What exactly is the job you are doing... Producing the Class Codes in Column C? Producing the descriptions in Column D? Highlighting the items in Column A that match the selected item in Column C? Maybe if you showed us a before and after layout, things would clear up for me.
 
Upvote 0
You can't add attachments here.

What a lot of people do is upload there file(s) to a filesharing site, eg box.net, and then post a download link here.
 
Upvote 0
Here is a cleaner version of my spreadsheet with the '6 first numbers' columns : Thank you again for your help. :)

viewer.php
[/URL][/IMG]
 
Upvote 0
Sorry, I am still confused. What exactly is the job you are doing... Producing the Class Codes in Column C? Producing the descriptions in Column D? Highlighting the items in Column A that match the selected item in Column C? Maybe if you showed us a before and after layout, things would clear up for me.

Again Rick I'm sorry for being unclear. What's highlighted is just an example of what I would like to match in a list on the side or on another sheet automatically.

The codes and the descriptions already exist, i didn't invent them. They are part of the UNSPSC (United Nations Standard Products and Services Code).
 
Upvote 0
With the sheet setup as it is with the 2 columns with the first 6 characters you can do this with advanced filter.

It will need some minor changes though.

1 Delete row 2.

2 Change A1 and D1 to a suitable field name, I used FirstSix.

3 With the cursor in column A goto Data>AdvancedFilter...

4 Select Copy to another location

5 Use $A$1:$C$36795 for ListRange, $D$1:$D$665 for Criteria range and I1 for the Copy to.

6 Press OK.

It does take some time, probably due to the no of records.

I end up with 6063 records, no idea if that's right.
 
Upvote 0
The description can be found on the "Sorting Worksheet" highlighted in yellow. Thank you.

Here is what I would like excel to do ( I did this one manually to show you):
viewer.php
[/URL][/IMG]

Or this if what's shown above is not possible:

viewer.php
[/URL][/IMG]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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