#1   Report Post  
candyyoung
 
Posts: n/a
Default IF, AND Formulas


I am just learning Excel and I am trying to add a formula to some cells
to do multiple functions. Here is what I am trying to do: IF B1=1 and
C1=1, add "1" to A1 and delete B1 and C1. Any help out there?


--
candyyoung
------------------------------------------------------------------------
candyyoung's Profile: http://www.excelforum.com/member.php...o&userid=26795
View this thread: http://www.excelforum.com/showthread...hreadid=400470

  #2   Report Post  
Gary's Student
 
Posts: n/a
Default

Since you are trying to change three cells you will need a macro rather than
a function. Try the following:

Sub bumpandclear()
If Cells(1, 2) = 1 And Cells(1, 3) = 1 Then
Cells(1, 1) = Cells(1, 1) + 1
Cells(1, 2) = ""
Cells(1, 3) = ""
End If
End Sub
--
Gary's Student


"candyyoung" wrote:


I am just learning Excel and I am trying to add a formula to some cells
to do multiple functions. Here is what I am trying to do: IF B1=1 and
C1=1, add "1" to A1 and delete B1 and C1. Any help out there?


--
candyyoung
------------------------------------------------------------------------
candyyoung's Profile: http://www.excelforum.com/member.php...o&userid=26795
View this thread: http://www.excelforum.com/showthread...hreadid=400470


  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

You can't do that with a formula. A formula exists in one cell, and returns
a value to just one cell, and you cannot add 1 to itself.

Secondly, if you clear out B1, the formula in A1 won't work any longer.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"candyyoung" wrote
in message ...

I am just learning Excel and I am trying to add a formula to some cells
to do multiple functions. Here is what I am trying to do: IF B1=1 and
C1=1, add "1" to A1 and delete B1 and C1. Any help out there?


--
candyyoung
------------------------------------------------------------------------
candyyoung's Profile:

http://www.excelforum.com/member.php...o&userid=26795
View this thread: http://www.excelforum.com/showthread...hreadid=400470



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
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Need Formulas for counting multiple conditions OrdOff Excel Worksheet Functions 4 July 3rd 05 06:12 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
Way to make Excel only run certain formulas on a worksheet? jrusso Excel Discussion (Misc queries) 0 January 12th 05 04:23 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


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

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

About Us

"It's about Microsoft Excel"