Move data from ColB and ColC beneath data in ColA - excel

I tried looking up what I need to do, but I'm not very good with Excel, so I'm not sure how to search for what I'm attempting to do.... here it goes...
I have a file that a customer sent me that I need to export as a .csv for direct mailing. What she sent has all 1463 customer names down column A, their address in ColB, and the second address line in ColC. The program that I need to import the .csv file into needs all of the information in one column so that it reads as you might read an address on an envelope, with the entire name and address in one cell (one cell per entry). So I need to take the data in column C and move it underneath the data in column B, then take that data and move it underneath the name data in column A.
Side note: The third address lines did have a comma between the city and state, but I have already gone through and removed them, since I know that the file will not export correctly with a comma in the data in a .csv file.
Using Excel 2010 on Windows 7.

Assign the formula into cell C1, you can use =CONCATENATE(A1,CHAR(10),B1) or =A1&CHAR(10)&B1
Copy cell C1 and paste it for all required rows in C column
Right click on C column header and choose Wrap Text
Adjust the size of C column so that all lines shown in full
If you save in CSV, you will be asked to confirm features not compatible. If you agree, you need to repeat step 3 two times (Unwrap then Wrap it again) and step 4 if you open this file again. The formula will be gone. I suggest to save in either xls or xlsx format.

Related

how to put data from multiple columns into one column in excel

I am moving a site from magento to shopify and it's proving a little difficult. For the products I sell, it's necessary to give the customer a number of specifications before they purchase (colour, material, weight, RAM, etc.) In magento it was possible to create a column in the csv for each of these specifications and add the relevant information in the cells and if the cell had data it would add that the the product page and if it didn't, it would omit that data from the product page. Moving the shopify, this isn't a feature and requires me to consolidate all of this information into 1 column before upload. Doing this can of course result in a number of issues - from missing information to incorrect html input (as the information is to be in a table format).
I have provided a sample file here: https://docs.google.com/spreadsheets/d/1rFFqS20ED1S1cPCTixZm5ToyMhEow4VpVwapLj1ps38/edit?usp=sharing
The idea is for the specifications (in this case colour , material, brand and weight) to be presented in a html table format for uploading. The column 'Body HTML' shows the desired output from each of the columns A:D. If there is data in the cell from columns A:D, the corresponding E cell of the same row will show that data along with the header; if there is no data in the cell, the corresponding E cell of the same row will omit that piece of data along with the header.
To put together the pieces that you want in column E, you can use the CONCATENATE function as follows:
=CONCATENATE(s1,s2,s3,...)
Now, s1,s2,s3,... are the strings that you want to concatenate together derived from columns A to D. For each si, you use the IF function. For example, for column A:
IF(A1<>"",CONCATENATE("<td>Colour: ",A1,"</td>"),"")
which evaluates to "Colour: Red" if cell A1 is not empty, and "" otherwise.

UI path write multiple column in excel

I am learning UIPath and my source is excel file. I have excel file with column A,B, C. What I want is to write column A and C only into new excel file.
I get confused which function I should use to read / write. I think if I use read range / write range, it will write all column. However, what I want is only column A and C
Read the entire Excel sheet with ReadRange. It outputs a Datatable. For DataTables there is an activity called Remove Data Column (Programming->DataTable). Use this to remove Col B.
Try this instead,First Read all the excel Data using the read range activity in the activity panel and then go for the for each row activity to get each and specific values and then you can drag and drop the write cell Activity from the activity Panel.and in write cell mention the Sheet Name,Range in which you need to start from and value which means which value you wanted to print
for example:you want only A and c Means you can go for row(0).ToString and row(2).ToString..
if you find any challenge in doing this,Fell Free to let me know.:D

excel, without script, just using its built in features, how to trigger a value or content in one cell based on value or content in other cell

Need advice on the following; Thanks in advance.:
Excel, the visual description of the issue
Further description of the issue:
certain Product code = certain Product name of certain Size.
The help-table on the attached image shows that a certain product code = what product name of what size, as a guide.
This is what I try to do. This is what my question is: How to achieve:
Manual entry in cells of column A should trigger automatically filled content in cells of columns B and C based on the content of A and based on the dependencies described in the help-Table.
Edited: As the user proceeds adding new records in new rows, the appropriate columns (B and C) should "fill itself" automatically as soon as there's an entry in the same row in column A. This automatically filled content in column C and B depends on what is the content of column A as can be seen on the attached image("help-table"). And all this should work without me using a formula in columns B and C.
So far I used an "IF" formula which is not practical for many possible product codes.
A formula is also impractical as its usage requires the formula to be copied to next row, which I want to avoid. I want the set rule to be applied to a whole column.(for example as the data validation or conditional formatting work in excel)
It would be ideal to use it in a way like the conditional formatting works, but in this case it should work with values(content) instead of colors and should be applicable for an entire column without a need of copying to the next row. That means I'd like to avoid macros or VBA if possible, just want to use built in features.
I already use Defined names and Data validation for columns A,B and C which works for me as a choice list and also to control column B and C for allowed entries only, so their content is not mistyped and has the strict format needed. Excel 2010 -if that matters.
Important: there will be 1000's of rows added, I just made a short description above
Formula for cells in column B:
=IF(A2=10,"prod1",IF(A2=20,"prod1",IF(A2=30,"prod2",IF(A2=40,"prod2",""))))
Formula for cells in column C:
=IF(A2=10,"50",IF(A2=20,"75",IF(A2=30,"10",IF(A2=40,"50",""))))
Also tried a CSE formula for the entire column B or C like follows (but the file size was couple of MB which is not desired):
=IF(A:A=10,"prod1",IF(A:A=20,"prod1",IF(A:A=30,"prod2",IF(A:A=40,"prod2",""))))
If the entry in column A will be only 10,20,30 and 40 then use OR formula in column B
=IF(OR(A2=10,A2=20),"prod1","prod2")
In Column C we can reduce two IF
=IF(A2=20,"75",IF(A2=30,"10","50"))
And regarding the file size please save it in binary format. Hope this will help :)

Unique Values in Drop Down List

I have two workbooks, a source file and an output file.
The source file contains information which occupies some drop-down lists in the output file.
For each drop-down list I have two 'names' (in the name manager) linked to it. For instance, the name 'SchemeID' in my output file refers to the same name in my source file. It consists of several rows/columns of data, and that populates my drop-down list.
There are some repeats in the source file (e.g. different names associated with the same number) which are appearing in the drop down lists, and I'd like to get rid of them so the list only displays unique values. Is it possible to do this using data from different workbooks?
The easiest way is oging to be to go to the source workbooks, Data Ribbon -> Remove Duplicates. Anything else will require a couple of in-between data sheets or VBA to do cleanly. If your data doesn't change option this manual method should be fine.
EDIT as you seem restricted from editing the Source File
In a different sheet (let's say Sheet2) you will need a formula which pulls in all of your data from your 2 source Names. To my knowledge there is no clean non-VBA way to combine to Named Ranges, so we will need to do this by dumping the data down to a sheet, and then picking it up again.
There are a lot of ways to do this, but I'm going to pick the one broken down to the most steps; it will be a pretty messy sheet, but you can hide it if you need to, which shouldn't be a huge concern as a non-VBA method will need a data dump sheet anyway.
In Cell D1, we will put the number of rows in SchemeID, as follows:
=ROWS(SchemeID)
In Cell D2, we will put the number of rows in SchemeID2 (which I assume is the name for your second list, which you didn't specify):
=ROWS(SchemeID2)
In column B we will be dumping in the data from both named lists, without sorting or eliminating duplicates. Do this as follows, starting at A1 and dragged down (if you want headers this gets a little trickier, so I will assume no headers).
=IF(ROW()<=$D$1,INDEX(SchemeID,ROW()),INDEX(SchemeID2,ROW()-$D$1)
This says - if the row is not more than the total entries in SchemeID, then pull the value from SchemeID at the current row #. Otherwise, pull the entry from SchemeID2, at the current row# less the total rows in SchemeID (so if we are at row 10, but SchemeID ends at row 4, then row 10 will pull the 6th entry from SchemeID2).
Now in Column A, we will be checking to see which row is a duplicate, as follows starting at A2 [A1 is hardcoded as 1]:
=IF(ISERROR(MATCH(B2,$B$1:B1,0)),A1+1,A1)
This checks to see if there's a duplicate of the current value in column B, in the rows above the current row. If there is, it keeps the same index # as the row above (which will be ignored when we use this as the index key next). If there's no duplicate, it adds 1 to the index number.
In cell D3, put the following formula to track how many unique IDs there are:
=MAX(A:A)
Next, in column C, put your new list, which pulls from column B for as many unique values as there are [drag down]:
=VLOOKUP(ROW(),A:B,0)
This is your new non-duplicate list. To make a clean reference to it, create a new named range with the following formula:
=INDIRECT("'Sheet2!R1C3:R"&'Sheet2!$D$3&"C3", FALSE)
This will simplify to [Assuming 20 rows of data in column C, bsaed on what D3 says]:
='Sheet2!R1C3:R20C3'
Which, in the R1C1 method of referencing, means Sheet2!C1:C20.
This new named range should be what your dropdown lists refer to on your other tab.

Cell comparison and row inserts

I'm trying to compare files between multiple server's on our ERP program. Each server seems to have different files on some and not the others. I've got all my information in an excel sheet as to what server has what on it (including date, file name/type, and size of file), but I'd like to have the rows organized by their file name.
The way I have this setup is I have a header field for each server and each server has 3 columns. I want each row to have that same file name for each server group. So say cell A3, D3, and J3 = 12345.txt and cell G3 is 123.txt. I want cell's A3, D3, G3, and J3 to all have the same name for that row, if one of them doesn't, insert a row and push that section down. The original space can stay blank to show me that that server is missing said file.
A3 is my master column, but some server's have files that it doesn't, so even A3 doesn't have the same file as D, G, and J, I want A1-3 pushed down a row then.
I want everything in alphanumeric order, which is why even though columns A-C are the "master", I want a good visual representation of what it has and doesn't have in comparison to the other server's.
Is this possible with Excel? (I'm running office 365)
Picture from comments:
Here is a quick summary of the Pivot Table idea. I think it works well for viewing which files are/are not present on given servers. It also makes it possible to filter/sort/count and do all variety of things which are not possible when you start adding a bunch of blank rows.
Steps to do this:
Create a set of random file names (with half shared between each list). This step is not needed since you have the data.
Join the two lists and add the server name to each list. There is now one large table. I am just doing filename, you can do this with all your fields.
Create a Pivot Table out of the data. On the rows you add the filename, server name on the column, and a COUNT in the values.
(Optional) If you really need the filename repeated under the servers, you can add some formulas to the side to display them.
Picture of data and results
Formulas for the last table
Header (copied to the right) in M4
=I4
Data (copied down for both columns) in M5
=IF(I5<>"", $H5,"")

Resources