Import CSV With Commas In Description Field?

Dec 2, 2013

One of the fields I am importing has got a description with commas in. When I import the description is wrongly split. How can I fix that? KS14411011,22490030,"Airconditioner,Wall",5512

Code:
Private Sub cmdImportFile_Click()
Dim ImpRng As Range
Dim Filename As String

[Code].....

View 2 Replies


ADVERTISEMENT

Count Formula For Description Text Field

Sep 25, 2006

I import a database with mostly unique records which has a description field that includes, among other things: Model Name, followed by predominant color. Unfortunately, there are no seperate fields for the Model Name or Color, e.g.:

DESCRIPTION
8070 CALLING WATER RED
508001 EYEDAZZLER LILIANA CARAMEL
502034 EYEDAZZLER LILIANA RED
#402022 DIAMONDS IN THE DARK RED
402024 DIAMONDS IN THE DARK PALOMINO

Is there a way to create a summary table which would count the number of occurences of the Model Name and the number of occurences of the color?

Fortunately, there are no more than 25 Model Names, and no more than 10 colors or color/combinations, so we could compare against two lists.

View 9 Replies View Related

Lightspeed Long Description Import From Excel - Separated Paragraphs

May 2, 2013

I am currently trying to import multiple 'long descriptions' onto Lightspeed product cards for display on an upcoming website. This is probably a very basic excel problem but I can't seem to find a simple solution online. Basically When I paste descriptions into a cell they break up into separate cells by line or paragraph break When I need them to stay together as one long description. Even if I have text qualifiers around the text they still only import one paragraph into lightspeed. Maybe that i am not saving it as the right file extension...

View 4 Replies View Related

Search And Import As Field

Feb 11, 2007

I have a log file with this format;

MML Command;
Field1 Field2 ...
Command Executed;
DIfferent MML command different fields. I need to search first the MML command, then search again the Field1 Field2 as I need. Since the format of field between MML command is different each other's, I cannot import it to excel. So How can, I start to do the vba, to search a MML command i need, and then field1 etc.. and stop at command executed,??

View 2 Replies View Related

Defining Field Format For Data Import From CSV

Jul 23, 2008

on data import from CSV file. The file is formated in a sligthly strange way:

"London","182.56","12/12/2007"
"Paris","133.41","27/12/2007"

I get into problem when importing using default CSV settings as numbers and date are understood like text. I need to replace "." with "," to get to number format. Used following Range("J5:K9999").Replace What:=".", Replacement:=",", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False

However I get values multiplied by 100 for some reason.

Converting date format gets eeven more complicated.
So I decided I can not use standard CSV import and need to define separate data source for each raw file This is not what I wanted, since I do import many files (10 at this point in time, but it will get growing). However, I would be ready to do that if there is no other option. So I go to "Create New Data Source" and under "Connect" I get to another input box called "ODBC Text Setup" where I select "Options" to define customer format. However, after selecting source file, Excel is not able to interprate fields. Tried clicking "Guess" button, no luck there. Thought it is because fo those "" before and after field value. So, just for a sake of experiment I opened file in text editor and removed those ". Still, can not read the file. The error message says "Text file specification field separator matches decimal separator or text delimiter. Guess failed"

I am out of ideas how to get this file properly imported. Hope there is a way to do that either by defining field formats while importing (perhaps that can be done via SQL, but I am not confident with it) or writing some code to change format after importing from text to Number and Date...

View 9 Replies View Related

Convert A Text Field To Numeric On Import

Feb 14, 2007

I have a fields coming in that are text but should be numeric. is there a formula I can put in the cell to convert it from text to numeric?

The original database has the numeric fields stored as text, but I need to import them into Excel and do calculations on them.

View 6 Replies View Related

Auto Populate Field With Date When Other Field Is Selected From Validation List

Jul 4, 2013

In the following extract, I would like to have today's date placed into Col K when an entry is made into Col J.

Entry into Col J is from a validation list of 3 options. What I desire is that when one of these options is selected ("Complete"), then I would like today's date to be written into Col K.

Currently Col K has a validation list which comprises dates from 1st of each month from July to June.

I need a fixed date as text preferably, so was thinking the VBA function "Date" on a Change Workbook Sub.

The information is currently part of a Table in Excel 2007 that has about 500 records.

IdeasList

*
J
K

2
Status
Month Completed

3
In Progress
*

4
Complete
Jul-13

5
*
*

6
*
*

Data Validation in Spreadsheet

Cell
Allow
Datas
Input 1
Input 2

J4
List
*
=ValidationList_Status
*

K4
List
*
=ValidationList_Months
*

View 2 Replies View Related

Macro To Preset Field With Text If Condition In Another Field Is True

Jun 9, 2006

I have a macro that imports a report. If the Charge Type in column A is BTOREPLX, I need to prefill the field next to it in column B with the text "REPLX", e.g. "REPLXCDROM". I've attached an example of the report.

View 5 Replies View Related

Change/Move Pivot Table Row Field To Column Field

Apr 23, 2008

In building my pivot table my data that I want to show in the column area is showing up as rows stacked on top of each other. In the column section I'm trying to show Total Budgeted Amount next to Total Actual Amount but on the layout it's showing the two stacked on top of each other is there some kind of hidden key that I'm missing?

View 3 Replies View Related

Getting Zero Formula Field When Data Field Blank / Empty

Feb 13, 2013

I have a simple formula ='info page'!b2&'info page'!b5 in places that on my sheet adds a company prefix to a item number, prefix in b2 and item in b5, we have a client that we cant use prefixes but now when I leave the field blank its giving a zero and thats not good either. I'm pretty sure an IFERROR or something will work but can get the syntax right.

View 5 Replies View Related

Auto Populate A Field In One Tab By Comparing Another Field In A Different Tab?

Jan 25, 2013

I have a tab called 'Tab1' in which I have column called 'Col1' and 'Col2'.

I have another tab called 'Tab 2' with columns 'ColA' and 'ColB'. When I enter a text in Col1(Tab1) I would like that text to be compared to data in 'ColA' from Tab 2 and when match found then get the corresponding value from ColB and autopopulate it in Col2 of Tab1.

View 2 Replies View Related

Changing A Numerical Field To A Date Field

Dec 28, 2006

in coverting these fields into a date field.

Example 91306 to 060913

I have encloed the file.

View 14 Replies View Related

Counting Per Date Field And Data Field

Apr 29, 2006

I am trying to count the number of times that data is in a field and in any field the date is greaert than today's date. This date field could be blank and that is where I am having the problem.

Example

See Attached

View 4 Replies View Related

Import Multiple Text Files & Copy Each Import

Jan 29, 2008

I'm attempting to import around 200 (and growing!) separate text files into Excel. I am using the formula below to import the text file and then using a separate macro to select the information I need, copy it into another spreadsheet, and then run the import macro again.

However, I have a problem in that my import macro gives me 'Run-time error '1004:

Application defined or user defined error''. At first this wasn't a problem as the information is pasted into the spreadsheet despite the error anyway. However, now that I am looping the macro it is obviously causing more problems as it prevents the loop. I would really appreciate it if anyone knows of a work-around or can spot an error in the coding to resolve this!

The code below shows is for the import macro only:

Sub ImportTextFile(FName As String, Sep As String)

Dim RowNdx As Long
Dim ColNdx As Integer
Dim TempVal As Variant
Dim WholeLine As String
Dim Pos As Integer
Dim NextPos As Integer
Dim SaveColNdx As Integer

View 8 Replies View Related

How To Extract Qty Min/Max From Description

Jan 31, 2009

Example: Table ...

View 9 Replies View Related

Import CSV Every X Minutes Without Import Dialog Appearing

Apr 1, 2008

I have a simple macro importing a .csv data file to a worksheet every 30 minutes.

When the macro runs an Import Text File dialog box displays.

What do I need to do to have the macro run to completion without the dialog box interruption?

Sub RefreshHourlyData()

htime = Now + TimeValue("00:30:00")

Application .OnTime htime, "RefreshHourlyData"

Sheets("H1Updates").Select
Sheets("H1Updates").UsedRange.Select

Selection.QueryTable.Refresh BackgroundQuery:=False

Range("A1:A1").Select

End Sub

View 3 Replies View Related

How To Combine The Description In One Line

Jun 17, 2014

Attached is a file containing stock codes and description. The stock code is repeated but i would like to have one line description per stock code.

View 4 Replies View Related

Lookup In A Description (color)

Mar 13, 2009

I have a column with a description that includes color in the description, I want to sort by color with breaking up the description, is there a formula that will look at the description such as "Am Cannoe black tecan" and in the cel next to it come back with "black". Then I would be able to sort by color column, otherwise I would have to text to column and break up the description, etc,,, ect....

So column a1 has the description, I want a formula that will put in column b1 "black" I have 3 colors, so I can do one at a time or add to same formula.....

View 6 Replies View Related

Sum Turnover Where Name Is PART Of The Description

May 14, 2009

I am looking for a way to use the sum.if formula, combined with the find.spec (I am not sure if this is the correct formule, at the moment I only have the Dutch Excel version, it is meant to find a word as part of a cell)

The part I am struggling with is how to find the correct cells to "sum" when the criterium is part of the cell contents. e.g. Paul is the description in am looking for in "Paul is riding his bike" If so, then add the turnover to Paul. I have made a demo to clarify what I mean.

View 4 Replies View Related

Split Description Into 3 Columns

Dec 9, 2009

I need help to split text (shown below) into 3 columns, now all text is in one cell.

e.g.,

HIPP 1 PLUS PROBIOTIK 600 G MILCHNAHRUNG PULVER 1607000286

I have over 30,000 rows of data which contains different number of spaces within a cell. Please see attached file.

View 14 Replies View Related

Pull Down Option Description

Jul 29, 2009

I have created a pull down menu but cannot figure out how to add descriptions with them. The items in the pull down menu are codes instaed of making people look up their definition in a printed out table,I am hoping to figure out how to make it so that as people scroll through the pull down menu a corresponding definition for the "code" listed appears.

View 9 Replies View Related

Find First/Last Value In Row & Return Corresponding Description Above/Below

Apr 8, 2008

I'm trying to find

1) the last and

2) first values in a time series of data in which the the data points are scattered all over the place

AND I'd also like to

3) get the corresponding year ( Heading name) for both the

3.1) last and the

3.2) first data point

I've found solutions for all but 3.2. Thus the question remains:

How could I lookup the heading description for the first value on a row?

example:

row #; lookup; year1; year2; year3; year4;
1; year3; ; ; 23; ;
2; year2; ; 21; ; 53;
3; year1; 12; ; 45; 2;

In case it helps anyone looking for same information or providing help to solve my problem 3.2 the other solutions I've found are:

1) lookup last value in row

i) Find Last Number In Row & Return Heading
=LOOKUP(9.99999999999999E+307,R5:AI5)
... also an additional VB solution

ii) Find Last Number In Row & Return Heading
=INDEX(M12:M500;MATCH(9.99999999999999E+307;M12:M500))
... page also includes solution for 2), below

iii) Find Last Number In Row & Return Heading
... 2 VB solutions

2) Lookup first value in row
Find Last Number In Row & Return Heading

=INDEX(M12:500,MATCH(TRUE,INDEX(M12:M500<>0,0,0),0))
... page also includes solution for 1), above

and

3) Lookup heading of last populated cell in row
Find Last Number In Row & Return Heading

=LOOKUP(2,1/(I9:CN9<>""),I$5:CN$5)

4) Could I e.g. modify the above to lookup the year of first value?

View 4 Replies View Related

How To Display Description Of Options (list)

Feb 24, 2014

Any way to display the description of options (list) which in this case is a numbering code (like ECG201) in a data validation cell.

The length of the cell is not long enough for the users to know the appropriate description of the selected lists. I am now thinking there should be a way to display the description of each item so that users will know that ECG201 means "International College of Excellence", for example, instead of having to go from one worksheet (area) to another to know what an option means.

View 1 Replies View Related

Description Column In Pivot Table

Aug 10, 2009

I often use pivot tables to summarize accounting data. I wish to summarize the data by account number, but also wish to display the account description next to each account number. Both the account number and account description are separate columns in my original table of data.

I've always managed to do this by the use of lookup formulas after the formation of the pivot table in a column outside the pivot table, but it would be preferable to have those descriptions as part of the table.

If I designate both the account number and account description as row labels, they land on two different lines.

View 7 Replies View Related

Excel - Formula Map With The Description Of Another Sheet

Jul 3, 2014

I'm trying to map the cases present in the sheet 1 to Sheet 2. Here the sheet2 I have highlighted the rows yellow color that needs to be updated by using excel formulas.Here the sheet should be updated with the description below mentioned along with the formulas..Highlighted cells in the sheet2 is B,C,I,J,T,U. I have designed the below condition in the same order

B cells should be updated with the reference of Sheet1 with the below condition:

Identify the "(B Value)"Claim with below condition (D Value)

C cells should be updated with the reference of Sheet1 with the below condition:

Verify whether (I Value) Mapped to the below Coverage in CAS (K value)

C cells should be updated with the reference of Sheet1 with the below condition:

Verify whether the Incident (Q value)is below for the Coverage (K Value)

J cells should be updated with the reference of Sheet1 with the below condition:

Verify the the Exposure type(P) is below for the Coverage (K)

T cells should be updated with the reference of Sheet1 with the below condition:

Verify the cost created the reserve coverage (K value) is below (N value)

U cells should be updated with the reference of Sheet1 with the below condition:

verify the line category of the payment done on the coverage

(X value of all the conditions for Sheet1 value)

View 1 Replies View Related

User Defined Function Description

Nov 25, 2008

I have created a custom add-in with custom functions and am trying to make it user friendly for other users. By running the following macro I can add functions to different categories, but I was wondering if there was a way to do this automatically so that anyone that adds this add-in will have the functions show up in the proper category without having to manually run this macro.

View 6 Replies View Related

Insert Columns Based On Tab Description

Apr 14, 2009

I have a macro that inserts a blank column for every sheet in the workbook. The problem i have is that i only want a limited number of columns inserted. I only want a column to be inserted if the sheet tab has the name "detail" in it. I have tried for hours to get this to work, but i keep getting errors. Here is the code i am using.

View 4 Replies View Related

Multiple Sums Depending On A Description

Dec 28, 2005

I really don't know how easy or difficult it might be, but here it is:

I have something like this (example) :

--------------------------------------
| A | B | C | D |
--------------------------------------
1 | 15| W1 | | |
2 | 5| W2 | | |
3 | 7| W1 | | |
4 | 9| W3 | | |
5 | 21| W4 | | |
6 | 14| W2 | | |
--------------------------------------

I want to have the result of all the W1 in D1, All W2 in D2, All W3 in D3 and all W4 in D4 without having to create any additional SUMs somewhere else to discriminate and then get the result (e.g. =IF($B2="W2",$A2,0) and copying the formula all along the column, then =SUM(xx:xx) and get the result.)

View 9 Replies View Related

Excel Match Text In Description

Sep 2, 2013

I have about 70K rows of data. This is a pull from a CRM system and one of the columns contains Free text which may or may not contain a reference ID.

So basically, I need to be able to identify which (if any) of the 60 or so Reference ID appears somewhere in the text. It may be at the beginning, somewhere in the middle or at the end.

So i created two formulas:

=ISNUMBER(SEARCH("MEBIG3",$P:$P))

I created 60 or so of these columns, all with a different Reference ID (MEBIG3 being the ID in this instance). I put the Reference ID in the Cell 1 of each of the columns. I then got a True in the cells wherever I matched the Ref ID to in the description field.

I then created another column with this:

=IF(AO4=TRUE,$AO$1,IF(AP4=TRUE,$AP$1,IF(AQ4=TRUE,$AQ$1,IF(AR4=TRUE,$AR$1,IF(AS4=TRUE,$AS$1,
IF(AT4=TRUE,$AT$1,IF(AU4=TRUE,$AU$1,IF($AV$2=TRUE,AV3,IF($AW$2=TRUE,$AW$1,IF(AX4=TRUE,$AX$1,
IF(AY4=TRUE,$AY$1,IF(AZ4=TRUE,$AZ$1,IF(BA4=TRUE,$BA$1,IF(BB4=TRUE,$BB$1,IF(BC4=TRUE,$BC$1,
IF(BD4=TRUE,$BD$1,IF(BE4=TRUE,$BE$1,IF(BF4=TRUE,$BF$1,IF(BG4=TRUE,$BG$1,IF(BH4=TRUE,$BH$1,

[Code] ........

So wherever there was a True, it returned the Cell at the top of the column which has the Ref ID in it. I put a pivot table and it worked, but the problem is that Excel just can't really handle the number of calculations. The file keeps crashing and becoming corrupt (There are 70K rows, times 60 or so columns). Also I have actually run out of columns I can add in the nesting, I really need more.

Any way of doing the whole piece of analysis all in one Cell. So basically it says "If ADM1 appears anywhere in Column P return ADM1, If ADM2 appears anywhere in Column P return ADM2 and so on".

View 8 Replies View Related

Looking Up Data And Match The Description And Then Insert The Value

Jan 21, 2008

I have a table I down load from SAP with the following headers;
Route, Description, DChl, YF21 (SD),YF31 (SD),YF21 (MM),YF31 (MM),YF10 (MM),YF11 (MM),YF12 (MM).

All I need to do is look up and match the Description and then insert the value (they are percentages) found under the columes YF21 onwards.

I have tried VLOOKUP until I am blue in the face and cannot get it to work.

View 9 Replies View Related







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