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...
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
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.
Improve this question
I am trying to convert text using only Excel data manipulation functions (not Data/Text to Columns).
Column A looks like this:
A1: 10 11 03,-690000,100.163685
A2: 14 11 03,-761000,100.3977
A3: 17 11 03,-682000,100.575887
and so on.
I'd like to get the date (01 11 03 recognised as a date) in column B, the middle data (between the two commas) in column C and the data on the right (after the second comma) in column D using the full accuracy displayed.
Seems you have options that would be easier, but please try in B1:
=DATEVALUE(LEFT(A1,2)&"/"&MID(A1,4,2)&"/"&MID(A1,7,2))
in C1:
=1*MID(A1,FIND(",",A1)+1,FIND(",",MID(A1,FIND(",",A1)+1,99))-1)
in D1:
=1*MID(A1,FIND(",",A1,FIND(",",A1)+1)+1,99)
and copy down to suit.
I believe the easiest way for you to handle this situation is to simply save your current worksheet as a text file, and then reopen it in Excel. When you open the file again in Excel it should automatically separate out the three columns the way you want it. Here is a screen capture from my Excel after I have done this:
Next you can format the A column as a date however you wish.
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 imported some query results from SQL Server 2008 to Excel csv file and it got imported like the following:
So Acct_No and TELE looks similar. How can I make sure that everything gets displayed uniquely? These scientific notation is making everything look similar.
Convert it to text. Since it's an account number there is no need to calculate it and therefore no need to treat it as a number. When you import delimited files, make sure to specify that column not as "general", but as text.
If the file is already created, use the "text to columns" functionality.
Edit: For example: office.microsoft.com/en-us/excel-help/split-names-by-using-the-convert-text-to-columns-wizard-HA010102340.aspx
Click on both columns and:
Format > Format Cells... > Number > Number > and specify no decimals
and if you prefer macros:
Sub Macro1()
Columns("A:B").Cells.NumberFormat = "0"
End Sub
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 don't know if I'm right here. My problem is, I have to turn a CSV table using Excel.
Pictures may explain that better:
this is an example of an initial table:
and I want the new table look like that:
Any idea what function can do this!?
I would really appreciate your help, because my paper is due tomorrow and I need the table for a statistical calculation.
Using SUMIFS() on the restructured data.
It's hard to tell from your example but you may have to move them in pieces (not all at once) but copy all of the cells.. right click "Paste Special" -> "Values" -> Checkbox "Transpose" (in the paste special dialog box). This will transpose a block of cells.
Solved the problem with a Pivot Table.
Thank you Sean Cheshire for the hint :)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
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.
Improve this question
I have a table which consists of set of data, say 2,4,6,8,10,12,14,16
I want to create a program in which one cell I input, the other cell I show the output.
For Example:
If I key in a value of 3 in the input cell, the excel will respond something like "there's no 3. THe values suitable are 2 and 4" in the output cell.
If I key in a value of 4 in the input cell, the excel will respond a value of 4 in the output cell.
I'm thinkg of If function. I14 is the input cell. D7 until D14 is the cell where the data locate.
If I14 is the same as any value in the data, the output will show the value. If it is not the same....I'm stuck.
=IF(I14=$D$7:$D$14,$D$7:$D$14,I14)
please help me!
You probably want the Data Validation tool.
Select the cell you want to have this validation, in your case, select cell I27.
Go to the "Data" tab, click the "Data Validation" button and use those options:
The source is where the valid list is, in your case $D$7:$D$14. You can also uncheck the dropdown if you want.
You can then choose the warning you need:
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.