I am using Excel 2007- I have hundreds of products (2 listed below: TU10 & TU12) The products have a 'VariantInventoryItemNumber' such as the 2 items below. I need to take all of the text before the ' - ' sign and place that in column A as illustrated below. ItemNumber VariantInventoryItemNumber TU10 TU10-10 TU10 TU10-10.5 TU10 TU10-11 TU10 TU10-11.5 TU10 TU10-12 TU10 TU10-12.5 TU10 TU10-13 TU10 TU10-6 TU10 TU10-6.5 TU10 TU10-7 TU10 TU10-7.5 TU10 TU10-8 TU10 TU10-8.5 TU10 TU10-9 TU10 TU10-9.5 TU12 TU12-10 TU12 TU12-10.5 TU12 TU12-11 TU12 TU12-11.5 TU12 TU12-12 TU12 TU12-12.5 TU12 TU12-13 TU12 TU12-6 TU12 TU12-6.5 TU12 TU12-7 TU12 TU12-7.5 TU12 TU12-8 TU12 TU12-8.5 TU12 TU12-9 TU12 TU12-9.5 For Example: Column B: (VariantInventoryItemNumber) TU32-10.5 TU32-11 TU32-11.5 TU32-12 TU32-12.5 TU32-13 TU32-7 TU32-7.5 TU32-8 TU32-8.5 TU32-9 TU32-9.5 Now I need only the 'TU32' from that listing to be placed into column A using a formula... Any Help? Thanks

0 |

12/8/2009 6:14:01 PM

Hi, in column A enter =TRIM(LEFT(B1,FIND("-",B1)-1)) copy formula down if this helps please click yes thanks "urlocaljeweler" wrote: > I am using Excel 2007- > > I have hundreds of products (2 listed below: TU10 & TU12) > > The products have a 'VariantInventoryItemNumber' such as the 2 items below. > > I need to take all of the text before the ' - ' sign and place that in > column A as illustrated below. > > ItemNumber VariantInventoryItemNumber > TU10 TU10-10 > TU10 TU10-10.5 > TU10 TU10-11 > TU10 TU10-11.5 > TU10 TU10-12 > TU10 TU10-12.5 > TU10 TU10-13 > TU10 TU10-6 > TU10 TU10-6.5 > TU10 TU10-7 > TU10 TU10-7.5 > TU10 TU10-8 > TU10 TU10-8.5 > TU10 TU10-9 > TU10 TU10-9.5 > TU12 TU12-10 > TU12 TU12-10.5 > TU12 TU12-11 > TU12 TU12-11.5 > TU12 TU12-12 > TU12 TU12-12.5 > TU12 TU12-13 > TU12 TU12-6 > TU12 TU12-6.5 > TU12 TU12-7 > TU12 TU12-7.5 > TU12 TU12-8 > TU12 TU12-8.5 > TU12 TU12-9 > TU12 TU12-9.5 > > > For Example: > > Column B: (VariantInventoryItemNumber) > TU32-10.5 > TU32-11 > TU32-11.5 > TU32-12 > TU32-12.5 > TU32-13 > TU32-7 > TU32-7.5 > TU32-8 > TU32-8.5 > TU32-9 > TU32-9.5 > > Now I need only the 'TU32' from that listing to be placed into column A > using a formula... Any Help? > > Thanks

0 |

12/8/2009 6:47:01 PM

Can someone help with a relatively simple task. I have columns of data with specific headings. I have created names for each of the colums and now need to write a macro that will: 1. go to a required column 2. do a calculation (say average) of the data in that column and place the result 2 cells BELOW the last filled cell in that column Can someone smart out there help me with the code? Many thanks Hume In a roundabout sort of way the code below will do it. (Use it as a starter) Sub AverageColumn() Dim lColumnLetter As String Dim sTopOfRange As String, sBottomofRange As String Dim rRange...

Can anyone please help with this formula. If Sheet1 Column A = nothing(blank) And Column B = \\\\\\CC\\\\\\ Then Sheet 2 B7 = SumTotal. As a regular formula would be nice or VB code Hi Richard you want nothing at all in the whole of column A in sheet 1? do you want every cell in column B of sheet 1 to have \\\\\\CC\\\\\\ or should this (can this) only appear in one cell? and what range are you summing on sheet 2 in cell B7? Cheers JulieD "Richard" <anonymous@discussions.microsoft.com> wrote in message news:82ce01c477e1$77f0e740$a301280a@phx.gbl... > Can anyone please ...

I am using an =Ave function in a formula to average quite a few cell values together. I add new information all the time; sometimes 5 or 6 new cells at a time. How can I append or up-date my formula to include these new cells with out have to type the new cells into the formula? When I make the cell that has the formula in it active/edit, all of the cells that are referenced in the formula have a highlight around them. Is there a key or key combination I can press while clicking on the cells I want to add to the formula? Thanks, john Hi see your post in Excel.misc -- Regards Frank ...

I have a working SUMPRODUCT formula {=SUMPRODUCT(($C$4:$C$4341=z8)*(audittypefm1="Standard"))} that I need to change the 1st array to C5623. When I do I get a #N/A error. I've tried giving the range a name (empnofm2), and I've verified all the data in the C4:C5623 range is formated the same (general, it is all employee numbers from 2 to 5 digits long. I'm using a "trim all" macro which is working great. I am unable to determine what is causing the #N/A and how to fix it. Basically I copied an entire worksheet within the same workbook and changed the name, wh...

I have 98 sets of magazines each set has 12 in the set what formula can I use to get a total of issues in all sets have you tried 98*12 -- Don Guillett SalesAid Software dguillett1@austin.rr.com "Just Me" <no@isp.com> wrote in message news:eZ66ZEGHGHA.1192@TK2MSFTNGP11.phx.gbl... >I have 98 sets of magazines each set has 12 in the set > > what formula can I use to get a total of issues in all sets > =98*12 or =A1*A2 if the numbers are in A1 and A2 -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Just Me" <n...

Hi, What formula should I use if I want it to look at a specific cell and then work out the total number between two numbers. e.g. if cell H6 had 7-4 entered the number 9 would be returned. Thanks in advance I'm not sure how you got 9, but your life would be much easier if you used two separate cells and then subtracted the smaller from the larger (and then added one???). Boenerge wrote: > > Hi, > What formula should I use if I want it to look at a specific cell and then > work out the total number between two numbers. > e.g. if cell H6 had 7-4 entered the number 9 woul...

Can the offset be used in the below formula for the information in column "K"? In column L have the the following formula's L46 =MAX($I46*1000-$K$46*$J46,0) L47 =MAX($I47*1000-$K$46*$J47,0) .... L99 =MAX($I99*1000-$K$46*$J99,0) What I'd like to do is to copy the fomula into columns M, N, O, ... M47 =MAX($I47*1000-$K$47*$J47,0) M48 =MAX($I48*1000-$K$47*$J48,0) M49 =MAX($I49*1000-$K$47*$J49,0) .... N48 =MAX($I48*1000-$K$48*$J48,0) N49 =MAX($I49*1000-$K$48*$J49,0) .... O50 =MAX($I50*1000-$K$50*$J50,0) O51 =MAX($I51*1000-$K$50*$J51,0) .... How abou...

I have a report that must be turned in the night before for tomorrow's date. Is ithere a date formula that will return tomorrow's date to a cell in Excel? One way: =TODAY() + 1 In article <668782AC-774A-475F-9821-8A4C3B14A983@microsoft.com>, "Shadyhosta" <Shadyhosta@discussions.microsoft.com> wrote: > I have a report that must be turned in the night before for tomorrow's date. > Is ithere a date formula that will return tomorrow's date to a cell in Excel? I assume that you want the date to remain static after entry. Easiest way, use 2...

I have a column and all I need is the last 5 characters in this field. Problem is that this field has various text lengths. How can I get the last 5 characters and delete the rest. My spreadsheet have 1,000 or so lines. This Column looks like this: AESGROUPGR123 AESGROUPGR457 AESGROUPGR236 SECTIOGR046 MSGTYHSYHSYHGR123 MSGTYHSYYHGR123 My first thought was to make ths column flush right in Text to columns, but I do not see that making it flush right is an option. Ideas? Thanks. Thanks a bunch Pete I appreciate your time and efforts on my behalf Pete_UK wrote: > Try this: > > =...

Can anyone help with the weekday formula. What I want to do is enter the date in say A1 11/20/2003 and have B return the answer of Thursday. Currently I use the weekday formula bu only returns the number of the day. Thanks in advance B ----------------------------------------------- ~~ Message posted from http://www.ExcelTip.com ~~View and post usenet messages directly from http://www.ExcelForum.com There are several ways to do this. One is to enter =A1 and format the cell with a custom number format of dddd. Another way is to use the function =TEXT(A1,"dddd"). -- Cordiall...

Hello, I am facing a problem in writing my contents into a file in binary mode. There is no exception or no error. Can any one help me why the following code not able to write contents in binary format to a file ? if (fp.Open("test.dat",CFile::modeCreate | CFile::modeReadWrite | CFile::typeBinary | CFile::shareDenyNone)==NULL) return FALSE; else { char buff[20]; strcpy(buff,"hello world"); fp.Write(buff,strlen(buff)); } fp.Close(); I used both CFile and CStdioFile but even them i did not get success. When i open the file i still see my contents in ...

At least I think that's what I'm looking for. here's my situation: I've got a sheet where there is a variable (X) that changes depending on what row it is on. So I have a column (column c) that lists these variables (X is dependant on things from a different sheet). X is a muliplier that is utilized differently depending on the value of N. N is a Picklist selection and can change periodically. Or even be duplicated on more than one row. I have a vlookup that checks the value of N (column a) and needs to return a formula that has X applied if needed on the approp...

Hi, How do I change the following formula =SUMIF($F$39:$F$79,"PW Shopfitters",$D$39:$D$79)/COUNTIF($F$39:$F$79,"PW Shopfitters") to count within a named range (PW Shopfitters). Any help would be great. Cheers, Phil Hi A range name cannot have spaces, maybe that's your problem. Name your range PW_Shopfitters. Then replace your cell references with PW_Shopfitters, eg =Sumif(PW_Shopfitters,"PW Shopfitters",............ -- j.kasselman@atlantic.net.remove_2nd_at. Randburg, Gauteng, South Africa "PW11111" wrote: > > Hi, > &g...

Does anyone know how to send plain text emails from Outlook web access? The only options I can find are to send them using different fonts. Any ideas, please email at orlando@cybrzn.com Thanks! Well, considering OWA is HTML... you could configure it on the server - compose in HTML, convert to plain text when it's sent but it would apply to all messages. -- Diane Poremsky [MVP - Outlook] Author, Teach Yourself Outlook 2003 in 24 Hours Coauthor, OneNote 2003 for Windows (Visual QuickStart Guide) Outlook Tips: http://www.outlook-tips.net/ Search for answers: http://groups.google...

Is there a way to have table or query exported out to a text file and APPEND to what is already in the text file instead of overwrite? Please advise. Thank you. "Brig Siton" <bnospamsiton@yahoo.com> wrote in message news:e0wzJZZ1KHA.5328@TK2MSFTNGP04.phx.gbl... > Is there a way to have table or query exported out to a text file and > APPEND to what is already in the text file instead of overwrite? TransferText will always overwrite the target file. If you still want to use TransferText, you can export to a temporary file, then use one of seve...

Hello. I have this formula loaded from a text field on a form: val([field10])+val([field20]) and I would like to use this as a code formula. I mean, if I use that in VBA code it works, but If I load from a text field it doesn't work. I need that my form use that formula stored in a text field to calculate values. Regards in advance, Marco responded to in another newsgroup. It's rarely necessary to post the same question to more than one group. If it is necessary, select all the relevant newsgroups in the "To:" or "Newsgroups:" field. That way, folks who...

Dear MS, How about a new function for this one. I'm sure MANY users have the same problem as me. The research below seems quite comprehensive and has effectively come up against a brick wall. Thanks Peter Harlan Grove posted this UDF: http://www.google.com/groups?selm=hkQVb.2432%24_4.259%40www.newsranger.com Peter wrote: > > Very Helpful Papou - thank you! > Do you know of an additional / alternative method where you achieve the same tihing but are not required to have all the relevant work sheets open? > Many thanks > Peter > > "papou" wrote: > ...

What formula in access can do =COUNTIF(CAF!D:D,A3) Basicly I have 2 tables I want the 2nd table to count how many times a number is listed in the 1st table. I am trying to do this with a query and the count expression but keep getting errors. Dont bother with this one guys just figured it out AMDGUY [MCP] wrote: > What formula in access can do > =COUNTIF(CAF!D:D,A3) > > Basicly I have 2 tables > > I want the 2nd table to count how many times a number is listed in the > 1st table. I am trying to do this with a query and the count expression > but keep getting e...

What does the $ symbol mean in a formula? example: =G8*($A$14*2)*100 thanx The $ is used for absolut referencing. For e.g lets take your formula =G8*($A$14*2)*100 suppose you enter this formula in cell B2, now simply copy this formula one cell to the right (C2) by and one cell down (B3). C2: =H8*($A$14*2)*100 B3: =G9*($A$14*2)*100 So you see that The original G8 has changed, whereas $A$1 remains the same in both the new formulae because of the dollar signs. Mangesh "S" <S@discussions.microsoft.com> wrote in message news:D86597A4-C0A1-46AF-9DA6-FE06AB9C1FA0@mi...

How to generate auto number but i want it to be combination with text Example L0001, THEN L0002 and so on..how? -- Message posted via http://www.accessmonster.com Emily, What does the 'L' stand for ? Will this field contain other series of numbers that start with some other letter but which must also start sequencing at 00001? By storing more than one piece of information in a single database field, you are violating the first normal form of database design. I would recommend you store the letter designator in a separate field. Assuming that you have other letters, that mu...

I have created a function that reads a text file containing a list of servers. The code for this function is below but for some reason it doesn't retrieve any data from servers.pdd. My code below shows that ReadString() is returning 0. Any ideas? void CServersDlg::GetServerList() { TRY { CStdioFile f; CString s; CString output; if(f.Open("servers.pdd", CFile::modeRead | CFile::shareExclusive | CFile::typeText)) { BOOL retval; while(retval = f.ReadString(s)) // retval = 0, so does no iterations { output += s; //never occurs ...

i dont know if you can do this..... if(c5=10, take the cell 5 right 3 down to it, 0) if you can, i dont know how to write it in excel language thanks if anyone can hel -- cutsygur ----------------------------------------------------------------------- cutsygurl's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=1504 View this thread: http://www.excelforum.com/showthread.php?threadid=27569 cutsygurl Wrote: > i dont know if you can do this..... > if(c5=10, take the cell 5 right 3 down to it, 0) > if you can, i dont know how to write it in excel language &...

Why, does this system not combine the TOTAL for all items on order (in transist) and in inventory, and use this TOTAL AS NOT TO BE included when I want to create another PO from the same vendor? I am having to auto generate and go back to see what I need to delete that is already in transit on previuos PO. Proink Proink, Seems to work on this end. Maybe you don't have enough on-order + ((on-hand - committed) - transfers)) < re-order point to satisfy the re-order level. -- * Get Secure! - www.microsoft.com/security You must be using Outlook Express or some other type of new...

I have $700,000 to spend on advertising for three different products. My market share for the three products is 51.96%, 36.07% and 41.25%. I want to apportion my 700K between the three products so that the product with the lowest market share gets the most advertising dollars, etc. Using my data, I've been trying to devise a formula all night that would do this, but I'm stumped. I could use a hint... Here's one way of doing it - put 700,000 in A1 and put your 2 percentage shares in B1:B3 and then put this formula in C1: =3DA$1*(1-B1/SUM(B$1:B$3))/2 Format as currency and co...

Please help me. I writen this VBA code for export range to Text file. -------- Option Explicit Private Sub ExportButton_Click() Dim fHand As Long, expCode As Variant fHand = FreeFile Open ExportName For Output As fHand Write #fHand, TextBox 'TextBox included text "[Example]" Write #fHand, "key_temp=" For Each expCode In Range(CodeRef) Write #fHand, 1, expCode Next expCode Close fHand End Sub -------- I want export content should like this [Example] key_temp=1,000690;1,000063;1,000022;1,000829;0,600001;0,600005;0,000001;1,39 9001; -------- But now is...