Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2016, 07:25 AM
bremen22 bremen22 is offline Excel 2010 Formula not holding Windows 7 64bit Excel 2010 Formula not holding Office 2010 64bit
Advanced Beginner
Excel 2010 Formula not holding
 
Join Date: Jul 2013
Posts: 44
bremen22 is on a distinguished road
Question Excel 2010 Formula not holding

I'm not sure if this should go here or not, but I thought I would try here first.



I have a workbook that performs a query to an Oracle database via an ODBC connection. I have a typical "select, from, where" statement to pull down my information. I have a few formulas in various columns to do some formatting and other things.

When the data is refreshed the query might not return any records. The problem is when the query is refreshed the formulas are cleared out if no data is returned.

The end state that I am trying to reach is the data coming from the database is formatted correctly. There are three instances where this is causing a problem.

1) "TABLE"."Field" in my command text returns one of two phrases. Either "Red Car" or "Blue Truck". My current formula in the excel table is =if(a2="Red Car", "RC", "BT")
2) "TABLE"."Field" returns a string of numbers formatted "32-40". I am currently using the Left function as I only need the first two numbers.
3) "TABLE"."Field" returns a dollar figure. The first formula I use is to change entries that return a ""$0.00". in column d=if(B2 = 0, "--", B2). I then use another formula to restrict these records based on criteria. =if(C2="Yes", "D2", "--")

What I would like to do is to be able to use the Command Text for the external connection to perform the formatting if possible (just makes things cleaner) but I will be happy for my formulas to hold upon refresh.

Thanks in advance.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Holding down the Alt key wordistheword Word 4 12-30-2013 12:28 PM
Pictures not holding their place erincon23 Word 1 04-10-2013 09:00 PM
Excel 2010 Formula not holding Excel 2010- What does this formula mean and how does it work dangoodwin1 Excel 1 10-31-2012 09:18 PM
Excel 2010 Formula not holding Word not holding custom default settings Tink Word 2 06-17-2012 08:21 PM
Excel 2010 Formula not holding Excel 2010 formula rounds - arithmetic average calculation YooNaa Kim Excel 1 06-07-2011 08:50 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft