Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jimmy Hoffa
 
Posts: n/a
Default How can i get an If formula in excel to edit another cell?

Im working on a large mostly formula referneced spreadsheet in excel, so that
computer illiterate people here dont have to worry about doing their work on
certin things. I have run into one issue that i cant seem to bypass however
in the logical formulas, or lack there of, in excel. I need to use the if
formula like and if statement that would occur in C++ or Java, however there
is no way to write Then into this. I need the formula to determine whether
the information in a cell is true/false and then edit a range of cells
accordingly based on the logical outcome. I have no problem with the first
portion of this, but i cant make it edit the other cells, which is user input
data. When the function is true, i need it to set the value of the ranged
cells back to 0, deleting the user input, if false it does nothing.

If anyone has any idea on how to get this to work, i dont care about the
complexity. I just really hate excel, and am being forced to use it for its
"user ease", AKA nice interface for the eldery.

Thank You
  #3   Report Post  
Gary's Student
 
Posts: n/a
Default

You are correct. The IF() worksheet function does not have the kind of THEN
that you need. The IF() worksheet function also affects only a single cell
rather than a range of cells.

Consider using the IF statement within VBA. The syntax
IF...THEN...ELSE...ENDIF is more like what you are used to. Also VBA can
modify ranges of cells.
--
Gary's Student


"Jimmy Hoffa" wrote:

Im working on a large mostly formula referneced spreadsheet in excel, so that
computer illiterate people here dont have to worry about doing their work on
certin things. I have run into one issue that i cant seem to bypass however
in the logical formulas, or lack there of, in excel. I need to use the if
formula like and if statement that would occur in C++ or Java, however there
is no way to write Then into this. I need the formula to determine whether
the information in a cell is true/false and then edit a range of cells
accordingly based on the logical outcome. I have no problem with the first
portion of this, but i cant make it edit the other cells, which is user input
data. When the function is true, i need it to set the value of the ranged
cells back to 0, deleting the user input, if false it does nothing.

If anyone has any idea on how to get this to work, i dont care about the
complexity. I just really hate excel, and am being forced to use it for its
"user ease", AKA nice interface for the eldery.

Thank You

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel VB-Copy formula down until adjacent cell (left) is blank? Tony P. Excel Discussion (Misc queries) 1 May 18th 05 06:11 PM
Why are the Edit, Insert and Format menus greyed out in Excel? Simon Lim Excel Discussion (Misc queries) 2 May 3rd 05 01:57 PM
Excel Calculation Error for formula to sum longer Excel Discussion (Misc queries) 3 April 29th 05 03:40 PM
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM


All times are GMT +1. The time now is 08:20 AM.

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"