Assigning A Category To An Item Number Based On The First Two Characters Of The Item Number

Jun 18, 2008

I am using a vlookup and have a problem. I am assigning a category to an item number based on the first two characters of the item number. For example item number 60123 would equal scrap because of the first two characters of 60. But the item number can begin with either a number or letter. Here is the formula I am using that works for item numbers that begin with numbers:

=VLOOKUP(VALUE(LEFT(E2,2)),Sheet3!A:B,2,FALSE)

It works fine until I reach a item number that begins with a letter, then I get the dreaded #Value error. If I take the value out of the formula then it works for the letter based number items but not for the number based item numbers.

View 9 Replies


ADVERTISEMENT

Compare Our Item Number With The Suppliers Item Number?

Dec 18, 2012

I am using Vlookup to compare our item number with the suppliers item number but the result is removing the decimal point on some but not all items.I have included a small sample but it concerns almost 10.000 items.

View 9 Replies View Related

If Formula: Item Number From The Old File Corresponding To The Same Item Descprition In The New File

Nov 20, 2008

Here I would like to get your valued guidance for the usage of "IF" formula. I am having two sheets one is new XL-1 and other is old XL-2. I want to have a item number from the old file corresponding to the same item descprition in the new file. I am attaching the snap shots of two files which is more explanatory than describing in words here.

View 2 Replies View Related

Combining Multiple Cells Into One With Comma Separation Based On Item Number

May 14, 2014

I want to write a formula/script that searches file names in Column "A" for an item number located in Column "B", then combines all file names containing that item number into Column "C" with comma separations. Each item number will have a different number of file names associated with it (between 1 and 10 files), and there are about 2000 different item numbers being crossed with about 7000 file names.

Here is an example completed with a CONCATENATE formula:

File Name
59481A_1.jpg
59481A_2.jpg
59481A_3.jpg
59481A_4.jpg
59481A_5.jpg
59481A_6.jpg
Q110XL_1.jpg
Q110XL_2.jpg
C5710_1.jpg
C5710_2.jpg
C5710_3.jpg
C5710_4.jpg

Item Number
59481A
Q110XL
C5710

Final Image List
59481A_1.jpg,59481A_2.jpg,59481A_3.jpg,59481A_4.jpg
Q110XL_1.jpg,Q110XL_2.jpg
C5710_1.jpg,C5710_2.jpg,C5710_3.jpg,C5710_4.jpg

View 4 Replies View Related

COUNTIF Based On Left 7 Characters Of Item Matched In Range?

Feb 28, 2012

I have the following formula which doesn't work:

=COUNTIF(LEFT(proposedenter,7),LEFT(F127,7))

proposedenter is just a named range. I can see this is wrong but how do I base the count criteria on the left 7 characters of an item that is matched in the range?

View 3 Replies View Related

Automatic Update Of Cell Text Based On Item Number (also Text)?

Mar 28, 2014

I have a column C with different text in cells (item's title). Column D - relevant description for each of the items. 100+ rows.

Now, unfortunately, often a spreadsheet with items is updated with many new items. So I get a new spreadsheet with old and new items mixed. I need, somehow, to import descriptions of the old items (Column D of the old spreadsheet) to the new spreadsheet from old spreadsheet. So I want excel to look for old items in column A of the new spreadsheet and, once found, insert a description in the column B from old spreadsheet.

See attachment : Example for forum.xlsx

View 3 Replies View Related

Count Number Of Each Item In List

Oct 11, 2007

I've in a sheet something like this:

A B
Number Item
2 Apples
1 Orange
2 PineApple
5 Orange
1 Apple

I need to do a code to get how many Apples Orange, PinneApple or somethig is in the range

For Example:
3 Apples
6 Orange
1 PinneApple

The items are variable. It's starts in the second row, and finish in the next blank row.

View 4 Replies View Related

Number In Order & Change When Item Changes

Oct 16, 2007

I am trying to number rows based on criteria. when the value changes add a 1. This is what I need to have happen

Apple - 1
Apple - 1
Apple - 1
Orange - 2
Orange - 2
Plum - 3
Plum - 3

I can get an if statement to number everything 1.

View 8 Replies View Related

Return Number Of Item In A Column (Counts)

Jun 10, 2013

I am trying to see if there is a way using count or another option, of using one formula to look in a column and then spit out how many of each item are there:

i.e: lets say it says a, b, c, d etc...

Can a formula go through and say you have 3 of a, 5 of b and so on

I understand the basic of count sum iserror etc, just not sure if excel can do what I am wanting or if i should use access.

View 2 Replies View Related

Formula Return The Number Of Item For Each Manager

Jan 9, 2009

i need a formula in Cell B2, that will look in raw data and then look for the team in criteria (named range) then return the number of item for each manager....

View 9 Replies View Related

Find Item Number & Add To Another Workbooks Total

Feb 19, 2008

I have two workbooks, (Invoice.xls) and (Inventory.xls) both using sheet1. When I fill out an invoice, with lets say 10 items on sheet1 column B, I need a macro to find those items in workbook "Inventory" sheet1 column A. When the item is found, I need the qty I entered on the invoice workbook "Invoice" sheet1 column C (same row as the item number) to be subtracted from the current total for that item in workbook "Inventory" sheet1 column C. I would like to run the code from the workbook "Invoice" before I do a "Save As".
I have found other Vb code on this site that seems very close to what I need, but I just don't know enough to make the changes necessary.

View 5 Replies View Related

Find The MODE Of Cases/pallet By Item Number

Aug 28, 2008

One has the master data in it ( Item #Lot#/Cases per pallet/date ) = 30K rows
Second is the list of item #'s .

I need to find the MODE of cases/pallet by item number.

View 9 Replies View Related

Vlookup- Table That Has Data Which Uses A Number Which Correlates To An Item

Jan 11, 2010

I am using a vlookup with a table that has data which uses a number which correlates to an item. A person types the number into a cell which triggers the vlookup. See example

35apple37orange40lemon

So..if someone enters let say number 36 into the look up cell..since 36 does not exist in the table the vlookup returns the value next to cell 37. Is there a way to use vlookup so that if a number it is looking up does not exist it wont return the next value? I would like to return an error message if the number being looked up does not exist.

View 9 Replies View Related

Copy Item Number And Calculate Price As Replenished

Jun 9, 2007

attached is my spreadsheet. What I would like it to do is when someone marks a "N" or some other symbol in the box showing that supply not there; that excel copies the item #'s for the products listed and calculates up the prices for those items.
Thank you in advance for your help. If at all possible if it could calculate the order on another sheet such as sheet 3 that would be fantastic

View 5 Replies View Related

Pass Chosen ListBox Item Number To Cell

Oct 5, 2007

I use the code below to enter a value from a list box in a cell on a workssheet. Is it possible to code VBA to enter a number for the position of the selection in the listbox to a cell in a worksheet rather that the actual value from the list box. For example if my list is:

Option1
Option2
Option3

And I click on Option2 in the list, I can sennd the value 2 to a cell on the worksheet rather that the value "Option2' from the list.

Private Sub ListBox1_Click()
Sheets("SA").Range("SA_Poistion_To_Archive_A_New").Value = ListBox1
End Sub

View 2 Replies View Related

Counting In Excel - Determine Number Of Times Certain Item Is In Columns

Feb 7, 2014

If I have 1,000 entries in a column is there an easy way to determine the number of times a certain item is in the columns. For example if field A1 is "qwerty" I wan to see how many times "qwerty" or field A1 appears in the entire column?

View 2 Replies View Related

Create A Loop: Find Out For Each Item Number Which Customer Put Order

Oct 8, 2008

I’m getting data from query. My data has fields: Item No, Customer ID & Sales rep.
I need to find out for each Item number which customer put order and who was the sales rep. (Excel 2002). see file attached.

View 4 Replies View Related

Select An Item From Drop Down List And Automatically Fill A Number Of Cells

Nov 15, 2008

I am kind of new to Excel programming and would like to know if there is a solution to my problem. What I need is to have a dropdown list (I know how to make this) then select an item from the drop down, then based on the name i select, Excel automatically fill up the rest of the cells.

For example, from the drop down list I select the company name then Excel automatically type the address, phone number, Fax number and the contact name of the company for me in corresponding cells. Is there a way to do this?

View 3 Replies View Related

Various Lookups And Counts: Count The Number Of Days An Item Has Been Out With One Of The Companies Per Month

Oct 8, 2009

I have three companies in column A, In Column B I have a date of when an item was sent to them, in Column C I have the amount of days this item has been out with that company. Is there a formula that will count the number of days an item has been out with one of the companies per month, and find an average if more than 1 item has been sent per month. Two items have been sent to company A in Sep 09, one item has been there 10 days the other 20 days, the answer I would be looking for is 15.

View 4 Replies View Related

How To Set Worksheet To Auto Input Number When Item Selected From Dropdown List

Dec 6, 2012

I have a drop down box on a worksheet and once I have selected the item I want from the list, I would like the price of that item to appear in the cell next to it..

View 2 Replies View Related

Click Item In ListBox1 And ListBox2 Item Is Also Selected Simultaneously?

Feb 16, 2013

Excel Userform

VB:
'enables user to click [U]highlight and select[/U] an item in ListBox1 and ListBox2 item (same row in index) is also [U]highlighted[/U] (highlighted only not selected)
Private Sub ListBox1_Click()
ListBox2.ListIndex = ListBox1.ListIndex
End Sub

Question: Is it also possible to enable a user to click to select an item in ListBox1 and ListBox2 item is also selected simultaneously (same row in index). Is there excel vb code to do this?

I think the code may be along the lines of the ListBox SelectedIndex property. What would be the Excel VB code equivilant for the ListBox SelectedIndex property, if so?

View 8 Replies View Related

Flag Item When Doesn't Match Item Above

May 20, 2014

numberdesc
1_______yellow
1_______yellow
1_______blue
2_______purple
2_______purple
3_______green
3_______orange
4_______black

I need some way that can identify when the item in the description column doesnt match the first item of the same number- for example, here the 1-blue and 3-orange would be flagged because they should match the 1-yellow and 3-green.

I need to do this on a much larger scale (approximately 20,000 data points), so I wanted to create a formula or macro that could do this for me.. I thought making a reference page with would work but I keep getting an error.. I haven't done VBA in a while, so I may have syntax errors.

If Range("A2:A9").Sheets("Sheet1") = Range("A2:A6").Sheets("Ref") And Range("B2:B9").Sheets("Sheet1") = Range("B2:B6").Sheets("Ref") Then
Range("C2:C9").Sheets("Sheet1") = "x"
End If

View 2 Replies View Related

Selecting Item In Combobox - Item Not Get Selected

Jun 14, 2014

I am getting close to finishing the drop down menu capability when filling in column L in tab Transactions. However, there is a snag. When I enter part of account say "fin" (the important part here is that the part of the word should not be the beginning of the account name) - then I select an account from the menu - but it does not stay in the cell if the part of the name is the beginning of the account name - all is fine.

View 4 Replies View Related

Set Value Of ComboBox Based On Chosen Item From Another

May 15, 2008

I have two comboboxs on a userform, both are populated like this:
(ComboBox1 is a different sheet/column)


' Sets Remarks in ComboBox4 Contents
With Worksheets("Data")
Set rng = . Range(.Cells(1, "C"), .Cells(Rows.Count, "C").End(xlUp))
End With
With ComboBox4
.RowSource = rng.Address(external:=True)
End With
The function is that ComboBox1 will populate the names on lets say Sheet1, Column A, and when selected will populate by offset all the other Textboxs, and ComboBoxs.

Textbox1 is a date
ComboBox4 is populated off of items from the data sheet
ComboBox1 is populated off of sheet1 and provides names, then fills the userform fields

In populating the Userform, it fills Combobox4.value by the offset value of the selected name.

That cell does not contain the same info that was loaded into the ComboBox initally, and it does not show it. All other ComboBox entries match preloaded values, and show.

How do I get the ComboBox to display what is in the OffSet cell value, rather than blank because its different?

View 9 Replies View Related

Formulas Based On Drop Down List Item

Nov 7, 2008

http://home.comcast.net/~unkerjay/CSBG_Sheet.xls

in it, there's a Sheet named:

CSBG Report

which has a drop down list for all possible reports
beginning with "Jan".

There's also a "Totals" sheet which has the corresponding
information for each report totaled in separate columns.

Jan, for instance is totaled in column B.
Feb, is totaled in column C.
And so on.

What I'd like to be able to do, is, depending on
the report selected, to have the information in
the corresponding cells in the "CSBG Reports" Sheet
pulled from the appropriate column in the "Totals" Sheet.

So far, I'm not wrapping my mind around a way to
do this.

View 9 Replies View Related

Fill ComboBox Based On Item Chosen In Another

Sep 8, 2006

Not overly familiar with ComboBoxes but what I want to do is load a ComboBox with data based upon the selection of another ComboBox

Please see attached example.

ComboBox1 - I can get to load.
ComboBox2 - I want to load but only those lines that match the above selection
TextBox - Load with the data on row selected by ComboBox2

View 9 Replies View Related

Color ComboBox Based On Item Chosen

Sep 27, 2007

Is it possible to have a combo box in excel, where, when an item is selected, it is assigned a colour depending on which item it is? Eg, The combo box list has item 1, and item 2. If I select item1, then the text becomes red, if I select item 2, the text becomes blue. If not possible using combo box, what method can I use?

View 2 Replies View Related

Populate Combobox2 Based On Selected Item In Combobox1?

May 20, 2014

I have a problem in populating 2 combo boxes in my excel sheet, where in the later one is dependent on the first combo box.

The source for these 2 combo boxes exists in another workbook in the same sheet.
The sample data is as below

Folder NameWorkflow Name
AUDIT wkf_eval_update
AUDIT wkf_eval_cf_update
AUDIT wkf_eval_correct
EPG wkf_epg_aud_tmplt
EPG wkf_epg_audit

I have created two dynamic named ranges namely FolderName (refers to B column which has lot of duplicates) and WorkflowName(refers to C column).

For the first combobox, the dynamic named range FolderName is the source. So combobox 1 is populated with 2 values AUDIT, EPG. Here, my intention is "when i select AUDIT from combobox 1, then combobox 2 should be populated with the 3 values which corresponds AUDIT in the source worksheet.

View 1 Replies View Related

Calculate Average Based On Item Chosen From List

Apr 21, 2009

My attached files contains stock returns for companies. Each sheet contains the returns over a 5 year period for a certain stock, with the ticker symbol of the stock used as the sheet name. I want to write a sub that presents the user with a user form. This user form should have an OK and Cancel buttons, and it should have a list box with a list of all stocks. The user should be allowed to choose only one stock in the list. The sub should then display a message box that reports the average monthly return for the selected stock.

View 4 Replies View Related

Run Macro Procedure Based On Drop-Down Item Selected

May 27, 2009

I am trying to accomplish is to display a dropdown or combobox with a list of choices. I want the backcolor to be shaded light green to match instructional text that appears in the cell above. That I have working with the selections appearing. Once a choice is made I want a separate procedure to run that will somehow know which choice was made.

I can't put the code within the module for this particular sheet as it is dynamically recreated each time the data is refreshed and the code will disappear. This may seem to be an odd practice but this is how 25+ workbooks are coded within this system for my employer's customer and it is a required practice.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved