Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have one column of 3000 rows with data like so:
domain, name
So something like: harvard.edu, Harvard University
Some of the names do have punctuation in them and all of the domains end with .edu
I want to split that up so that I have two columns: name and domain
Select the entire column then Data -> Text to columns
Choose comma as the delimiter.
Using Data> Text to Columns specifying delimited by comma will give you "Harvard.edu" in the original column and " Harvard University" in the next column to the right.
Alternatively, you could use formulae:
If your data is in column A, enter
=LEFT(A1,FIND(", ",A1)-1)
in B1 and then in C1
=RIGHT(A1,LEN(A1)-FIND(" ",A1))
This should work because the domain will not contain spaces. The -1 gets rid of the comma after domain.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have text in column C with the desired order. Column A has the same values of column C but in random order. I want to sort column A with its corresponding values in column B to be in the same order as column C.
You could create a custom list, consisting of Column C, and then do a Custom Sort.
To create the Custom list, press the Office button/ Excel Options / Popular /
Edit custom list
Then Select and Import the relevant part of Colum C
Then select the data in Columns A:B; sort by Column A; and select the Custom list for sorting.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Basically I have a table which lists products A-H in column A and then in the next ten columns are features of each product. So each product is listed and then I tick a box to say whether or not it has that feature.
What I want to be able to do is to write in one cell a product, say product b, and then in the cell next to it have return another product that has at least four matching features.
How would I go about doing this?
UNTESTED
I take it that unticked boxes for the same feature on two products does not count as a match. Presumably more than two products may have more the same four or more features that match so different answers may be equally valid (I guess #Jerry's point). Hopefully the following describes a way to achieve both a single product in the cell next to your “Write cell” (here M1) while also indicating all qualifying possibilities.
Copy A2:A9 to A12
In B12, copied across and down to K19:
=IF(MATCH($M$1,$A$1:$A$10,0)=ROW()-10,"",1*AND((INDIRECT(CHAR(COLUMN()+64)&MATCH($M$1,$A$1:$A$10,0))=B2),B2<>""))
In N1: =IFERROR(INDEX(A12:A19,MATCH("CF",M12:M19,0)),"")
In M12 and copied down to M19: =IF(SUM(B12:K12)>3,"CF","")
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a spreadsheet with excel with a column with over 1000 values that looks as follows:
15hrs
12hrs
34hrs
etc..
Can someone please give me a method on how to sum over these values as I have no clue on how to do this..
Change the A1:A3 to be the actual range:
=SUMPRODUCT(--SUBSTITUTE(A1:A3,"hrs",""))
Take a copy, replace hrs with nothing, then sum the result.
You cannot sum over the text values, but you can get what you're looking to do in a different way (if this'll work for you):
Select the column and go Replace all "Hrs" with blanks "" - In effect, making your text numbers
With the column values still highlighted, go to Format Cells and choose the "Custom" format... Change the format to General"Hrs"
Now you can add the values since they are stored as values, but LOOK like text.
I don't know if this'll work for you, but it should accomplish the task at hand if it does...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I would like to search a row for a string and get the column number if there is such a string.
Is this possible by using worksheet functions in Excel?
You can use MATCH to give the position, e.g. you can search in row 2 for "xyz" like this
=MATCH("xyz",2:2,0)
If "xyz" is found first in J2 you get 10
if you want partial matches then you can use wildcards like
=MATCH("*xyz*",2:2,0)
so if F2 contains [abc xyz 344] you get a match with that and formula returns 6
I believe VLOOKUP is the best for you.
There's also others like HLOOKUP, LOOKUP and SEARCH
If the lookup value is "value" and it is in row 1
=MATCH("value",1:1,0)
Assuming you have something like this:
A1 A2 A3 A4
111 aaa sss bbb,
you could write something of this sort:
=FIND("$", CELL("address",OFFSET($A$2, 0,MATCH(111,A2:D2,1)-COLUMN($A$2)+1)), 2)
Ugly, but works (assuming that's what you were looking for)...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
I have an Excel spreadsheet here.
What I dont know is
if you look at the main grid the columns are formatted for space so that the description is larger. Now the part at the bottom left. I really want those 4 columns
'RESIDENT NAME' 'ACCOUNT NUMBER' 'DATE' 'AMOUNT DUE'
I really want them aligned with the rest of the grid but how do i subdivide the large Description column to accomodate this?
Because of your formatting in your question I can't be sure what you want, but if you're trying to line up more than one column with the Description column, just make the Description column a merge of more than one column, then multiple columns will be able to fit underneath it.
You can merge cells by selecting them, then going to Format Cells->Alignment and clicking the Merge cells box.