Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. althea

    Excel/MS Query: Change format of date and dollar amount

    Skip, Thanks so much. I'm going to try and have the user enter the two dates in the cells and then convert the data to 'number' format in the parameter cells. Do you think the easiest way to do this is a function or paste special? Of course when i do this because of how the date is treated...
  2. althea

    Excel/MS Query: Change format of date and dollar amount

    Thanks. Here is the code I have: SELECT DailyDeposit.PrimarySiteId, convert(date,DailyDeposit.ClosingDate,110) AS 'Deposit Date', '$'+convert(varchar,DailyDeposit.DepositAmount,1) AS 'Deposit Amount' FROM SupportDB.dbo.DailyDeposit DailyDeposit WHERE (DailyDeposit.ClosingDate>=? And...
  3. althea

    Excel/MS Query: Change format of date and dollar amount

    Thanks for your suggestion. The article is very helpful. I think I wasn't clear on what happens. Once I change the format from number to 'date' on the cell, it stops working. My format of both cells is now 'date' and the text entered in each cell has format of 2/16/2011. This is because I chose...
  4. althea

    Excel/MS Query: Change format of date and dollar amount

    Thank you! Yes the convert worked great. One more issue: I'm using parameters based on two cell addresses so that the data displayed in the query is a range from a beginning date until ending date. Currently the two cells where the user enters a date are 'number' format. I'm trying to make...
  5. althea

    Excel/MS Query: Change format of date and dollar amount

    Thank you so much! It works great now using the 'convert' function. One more question, how can I format the dollar amount field so that instead of 322 I would see $322.00. Thanks!
  6. althea

    Excel/MS Query: Change format of date and dollar amount

    I'm still working on this. Thanks again for all of your help ahead of time. Yes I read your link on 'FAQ a complete guide to dates'. I did not see anywhere on the link about formatting dates coming from 'ms query'. Someone else suggested I 'drag the data out then use format cells'. How could...
  7. althea

    Excel/MS Query: Change format of date and dollar amount

    When I use 'to_char' I get the error 'to_char is not a recognized built-in function name. statement could not be prepared.' Maybe it's because it's not an oracle db, it's a sql db? Thanks!
  8. althea

    Excel/MS Query: Change format of date and dollar amount

    This is what I have entered using the 'sql' button in MS Query (which I get to from Excel) for the query to get data for my spreadsheet.
  9. althea

    Excel/MS Query: Change format of date and dollar amount

    Here is what I have currently: SELECT DailyDeposit.PrimarySiteId, format(DailyDeposit.ClosingDate,"mm-dd-yyyy"), DailyDeposit.DepositAmount FROM SupportDB.dbo.DailyDeposit DailyDeposit WHERE (format(DailyDeposit.ClosingDate,"mm-dd-yyyy") >=? And format(DailyDeposit.ClosingDate,"mm-dd-yyyy")<=?)...
  10. althea

    Excel/MS Query: Change format of date and dollar amount

    I have an excel spreadsheet and am getting data from my SQL database. In MS Query I have a query to get 3 fields from a database but need it to look better. When I try and use the 'format' next to date field, it gives me an error about 'does not recognize format command'. Do I add the...
  11. althea

    project: priority field

    I can't figure out what the 'priority' field does. It appears in the Project Information box and also in 'task information' box. Anyone ever changed the default of 500 to something else for a particular reason? Thanks,
  12. althea

    remove street address from address

    Thanks guys, all great suggestions! What we're going to do for this one is get another file from the customer that has street addresses as a separate field.
  13. althea

    remove street address from address

    text to columns will help but won't give me complete street address for every row because the number of characters differ in each street address.Thanks!
  14. althea

    remove street address from address

    Me again, here is the example below. The problem is that there are different cities in the data with different lengths...... 123 oak street asheville nc 28222
  15. althea

    remove street address from address

    I have in one cell street address, city, state zip and I need only the street address in a cell by itself. I have over 40,000 rows of data. Any ideas? Thanks!!
  16. althea

    remove space and hyphen from number

    I got it, thanks for all of your help!!! you guys are awesome!
  17. althea

    remove space and hyphen from number

    I have 40,000 of them....
  18. althea

    remove space and hyphen from number

    I have 225 333-3333 in a cell and I need only numbers. What is the easiest way to remove the space and hyphen? Thanks!!
  19. althea

    excel: easier way to use 'paste special'

    Because I was not thinking...duh! thanks so much! I just copied all the data at once but you know it did keep me occupied for awhile running the macro...hehe.
  20. althea

    excel: easier way to use 'paste special'

    I have 500 rows of data with that I'm using 'paste special' to copy values only to new cells. I've created a macro using a toolbar button so that I don't have to use paste special command so many times. Is there an easier way to do this so that I'm not using the macro button 500 times? Thanks!

Part and Inventory Search

Back
Top