Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default macro ignore formulas

Hi, is there any way this macro ignore formulas?
In column "I" i have this formula that retrieve numbers.
(=IF(G2<"",H2*G2,"")). If there are no numbers to retrieve, then the formula
doesn't display anything. But the macro keep seeing the formula. The formula
goes till row 50, and because of that, the macro is selecting the cell in row
50.
I need this macro to see only the results of formula.
Macro:
Columns("I:I").Select
Range("I1").End(xlDown).Select
ActiveCell.Offset(1, 0).Select
Can this be done?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default macro ignore formulas

If column G is what's important, why not have the macro look there?

Range("G1").End(xlDown).Select
'Offset 2 columns now to make up difference
ActiveCell.Offset(1, 2).Select

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"puiuluipui" wrote:

Hi, is there any way this macro ignore formulas?
In column "I" i have this formula that retrieve numbers.
(=IF(G2<"",H2*G2,"")). If there are no numbers to retrieve, then the formula
doesn't display anything. But the macro keep seeing the formula. The formula
goes till row 50, and because of that, the macro is selecting the cell in row
50.
I need this macro to see only the results of formula.
Macro:
Columns("I:I").Select
Range("I1").End(xlDown).Select
ActiveCell.Offset(1, 0).Select
Can this be done?
Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default macro ignore formulas

try like this

If Not ActiveCell.HasFormula Then
code goes here ........




On Oct 20, 12:46*am, puiuluipui
wrote:
Hi, is there any way this macro ignore formulas?
In column "I" i have this formula that retrieve numbers.
(=IF(G2<"",H2*G2,"")). If there are no numbers to retrieve, then the formula
doesn't display anything. But the macro keep seeing the formula. The formula
goes till row 50, and because of that, the macro is selecting the cell in row
50.
I need this macro to see only the results of formula.
Macro:
* * *Columns("I:I").Select
Range("I1").End(xlDown).Select
* * * *ActiveCell.Offset(1, 0).Select
Can this be done?
Thanks!


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default macro ignore formulas

This was really good. I hope you can help me with the other tread.
Thanks!

"Luke M" wrote:

If column G is what's important, why not have the macro look there?

Range("G1").End(xlDown).Select
'Offset 2 columns now to make up difference
ActiveCell.Offset(1, 2).Select

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"puiuluipui" wrote:

Hi, is there any way this macro ignore formulas?
In column "I" i have this formula that retrieve numbers.
(=IF(G2<"",H2*G2,"")). If there are no numbers to retrieve, then the formula
doesn't display anything. But the macro keep seeing the formula. The formula
goes till row 50, and because of that, the macro is selecting the cell in row
50.
I need this macro to see only the results of formula.
Macro:
Columns("I:I").Select
Range("I1").End(xlDown).Select
ActiveCell.Offset(1, 0).Select
Can this be done?
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
getting formulas to ignore text Reggie1000 Excel Discussion (Misc queries) 2 May 23rd 09 12:28 PM
ignore formulas in dynamic range skippy51 Excel Discussion (Misc queries) 1 January 2nd 09 05:01 PM
how do i get excel to ignore a value when using formulas andy in leeds Excel Discussion (Misc queries) 4 August 26th 06 12:12 PM
how do I get excel to ignore blank cells in formulas rbignami Excel Worksheet Functions 1 May 6th 05 03:18 AM
how do you ignore blank cells in formulas Kerry Excel Discussion (Misc queries) 2 February 16th 05 01:56 PM


All times are GMT +1. The time now is 06:21 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"