Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Enter "if then" / logical into a already existing cells with form

I have put together financial statements in a work book. Now, i would like
to enter a logical / if then, segment to my equations but i dont want to go
into each individual cell in the page, is there a way to do this for many or
all cells at once? Or do i literally have to go into each cell and paste in
the if then portion. All cells will be dependent on 1 of 3 drop down list
choices.

Would love some help onthis one.
Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Enter "if then" / logical into a already existing cells with form

Hi

With this little information of what you have in the cells, we can not give
an exact answer.

If the initial formula in all cells are basically the same (maybe looking at
different rows), you can insert the if statement in the first cell and then
copy the formula to other cells as required.

Hopes this helps.
....
Per

"Indigo-JDJ" skrev i meddelelsen
...
I have put together financial statements in a work book. Now, i would like
to enter a logical / if then, segment to my equations but i dont want to
go
into each individual cell in the page, is there a way to do this for many
or
all cells at once? Or do i literally have to go into each cell and paste
in
the if then portion. All cells will be dependent on 1 of 3 drop down list
choices.

Would love some help onthis one.
Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Enter "if then" / logical into a already existing cells with form

We can usuallly use something like Find/Replace.

Post a before/after example to give us more information.
--
Gary''s Student - gsnu200908


"Indigo-JDJ" wrote:

I have put together financial statements in a work book. Now, i would like
to enter a logical / if then, segment to my equations but i dont want to go
into each individual cell in the page, is there a way to do this for many or
all cells at once? Or do i literally have to go into each cell and paste in
the if then portion. All cells will be dependent on 1 of 3 drop down list
choices.

Would love some help onthis one.
Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Enter "if then" / logical into a already existing cells with form

Sample code for adding to existing formulas.

Perhaps you can addapt or post back with some details.

Sub ErrorTrapAdd()
Dim myStr As String
Dim cel As Range
For Each cel In Selection
If cel.HasFormula = True Then
If Not cel.Formula Like "=IF(ISERROR*" Then
myStr = Right(cel.Formula, Len(cel.Formula) - 1)
cel.Value = "=IF(ISERROR(" & myStr & "),""""," & myStr & ")"
End If
End If
Next
End Sub


Gord Dibben MS Excel MVP


On Sun, 1 Nov 2009 23:10:01 -0800, Indigo-JDJ
wrote:

I have put together financial statements in a work book. Now, i would like
to enter a logical / if then, segment to my equations but i dont want to go
into each individual cell in the page, is there a way to do this for many or
all cells at once? Or do i literally have to go into each cell and paste in
the if then portion. All cells will be dependent on 1 of 3 drop down list
choices.

Would love some help onthis one.
Thanks!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a "0" (zero) to the front of existing data in cells Primbarbi Excel Discussion (Misc queries) 6 May 13th 09 04:10 AM
Splitting out Content in 1 cell (which is currently separated by"ALT-ENTER") into multiple cells Sunil Ahuja Excel Discussion (Misc queries) 1 March 24th 09 04:27 PM
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! [email protected] Excel Discussion (Misc queries) 3 January 5th 07 02:18 PM
Combine logical formulas "if", "and", "or" pscu Excel Discussion (Misc queries) 5 November 2nd 06 07:43 PM
Make "Edit" mode default, rather than "Enter"? Greg Boettcher Excel Discussion (Misc queries) 1 July 27th 06 01:46 AM


All times are GMT +1. The time now is 04:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"