Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / October 2006

Tip: Looking for answers? Try searching our database.

Find and Replace ROUNDUP(stuff, 0)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
emkramer@gmail.com - 25 Oct 2006 19:49 GMT
I have several hundred cells with =ROUNDUP(formulas, 0).  I want to
erase the ROUNDUP( ,0), but don't know how to use find and replace on
this.  I can't do it in two steps, because then Excel doesn't like the
resulting formula after deleting either ROUNDUP( or ,0).  Is there a
simple way to turn off formulas?  Or another way around this problem?

Earl
Dave F - 25 Oct 2006 19:56 GMT
Copy the range, paste special, values.

Dave
Signature

Brevity is the soul of wit.

> I have several hundred cells with =ROUNDUP(formulas, 0).  I want to
> erase the ROUNDUP( ,0), but don't know how to use find and replace on
[quoted text clipped - 3 lines]
>
> Earl
emkramer@gmail.com - 25 Oct 2006 20:14 GMT
Unfortunately, I need to keep the formulas inside of the ROUNDUP
function.  I just need to delete "ROUNDUP(" and ",0)".

Thanks,

Earl

> Copy the range, paste special, values.
>
[quoted text clipped - 10 lines]
>
> > Earl
Dave F - 25 Oct 2006 21:00 GMT
Sorry I misunderstood your question.

One possible way:

1) Create a UDF, getformulaI which returns the formula in a cell.
2) Format the returned formulas as text
3) Run the MID function to extract from the text string the formula you want
4) Convert the text string to a formula.

Code for the UDF is:

Function GetFormulaI(Cell As Range) As String
  'Application.Volatile = True
  If VarType(Cell) = 8 And Not Cell.HasFormula Then
   GetFormulaI = "'" & Cell.Formula
  Else
   GetFormulaI = Cell.Formula
  End If
  If Cell.HasArray Then _
    GetFormulaI = "{" & Cell.Formula & "}"
End Function

This is rather awkward tho.  There may be a different way

Signature

Brevity is the soul of wit.

> Unfortunately, I need to keep the formulas inside of the ROUNDUP
> function.  I just need to delete "ROUNDUP(" and ",0)".
[quoted text clipped - 17 lines]
> >
> > > Earl
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.