You are here:

- Home
- Computing/Technology
- Business Software
- Excel
- Formula Free & BACK AGAIN

Advertisement

QUESTION: 14 columns are there C to P with range C1:P200

Row 1 contains time value. Example: C1=9/27/2014 8:42:34 AM; D1=9/27/2014 9:12:25 AM & so on...till P1.

Output: C2:C200 should become FORMULA FREE IMMEDIATELY when system's time>=C1

Similarly, D2200 should become FORMULA FREE when system's time>=D1

& so on till column P i.e. P2:P200 should become FORMULA FREE when system's time>=P1

How to accomplish?

Thanks in advance

ANSWER: In C2:

=IF(NOW()>=C$1,"FORMULA FREE","")

Fill down & right to P200

---------- FOLLOW-UP ----------

QUESTION: Sir,

You understood the question in a different direction....

Correct: C2 contains a formula like '=Q2'; C3=Q3 & so on...till C200=Q200.

So when system's time>=C1, the formula in C2:C200 should get removed leaving there only the value.

Similarly, for column D to P.

vba only could do this.....so vba needed.

Right-click the sheet tab in question, select View Code, enter this:

Private Sub Worksheet_Calculate()

Application.EnableEvents = False

Application.ScreenUpdating = False

Set rg = Selection

For i = 3 To 16

If Cells(1, i).Value < Now Then

Cells(2, i).Resize(199).Copy

Cells(2, i).PasteSpecial xlPasteValues

Application.CutCopyMode = False

End If

Next

Application.EnableEvents = True

rg.Select

Application.ScreenUpdating = True

End Sub

- Add to this Answer
- Ask a Question

Rating(1-10) | Knowledgeability = 9 | Clarity of Response = 9 | Politeness = 10 |

Comment | Simple by nature & a true intelligent human. He knows his subject very well. |

This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

Excel

Answers by Expert:

I`m a Microsoft Excel MVP (Most Valuable Professional) and have been since the inception of the program in 1995. I can answer every kind of Excel question except: API, Importing/exporting to other programs (powerpoint, word,...) Also check out my in-person training link at http://www.thumbtack.com/ny/new-york/excel-training/

Worked with MS Excel since version 0.99 (on the Mac!). Was contributing editor to Excellence Magazine, having written >300 articles. John Walkenbach said of me "I finally met someone who knows as much about Excel as I do."**Publications**

Excellence, The Expert, Microsoft**Education/Credentials**

BA in math, Hofstra University, 1965**Awards and Honors**

MVP

Led sessions for the Convergence 2004-2006 seminar on Excel tips & tricks