Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Add formula in the code

How would I add this formula into the code on Sheet2?

=SUMIF(Sheet1!B:B,"warrant",Sheet1!C:C)



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Add formula in the code

What does that mean - add it into the code on sheet2?

If you wanted to use code to enter that formula in a cell you would do:

Worksheets("Sheet2").Range("F6").Formula = _
"=SUMIF(Sheet1!B:B,""warrant"",Sheet1!C:C)"

--
Regards,
Tom Ogilvy


"Annette" wrote in message
...
How would I add this formula into the code on Sheet2?

=SUMIF(Sheet1!B:B,"warrant",Sheet1!C:C)





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Add formula in the code

Very intuitive and just what I needed ... this makes sense and also helps me
for the other formulas! Thanks!
"Tom Ogilvy" wrote in message
...
What does that mean - add it into the code on sheet2?

If you wanted to use code to enter that formula in a cell you would do:

Worksheets("Sheet2").Range("F6").Formula = _
"=SUMIF(Sheet1!B:B,""warrant"",Sheet1!C:C)"

--
Regards,
Tom Ogilvy


"Annette" wrote in message
...
How would I add this formula into the code on Sheet2?

=SUMIF(Sheet1!B:B,"warrant",Sheet1!C:C)







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Add formula in the code

TIP
To enter formula down a column:
With Range("D7:D27")
.FormulaR1C1 = "=somefunction(RC1)"
End With


"Annette" wrote in message
...
Very intuitive and just what I needed ... this makes sense and also helps
me
for the other formulas! Thanks!
"Tom Ogilvy" wrote in message
...
What does that mean - add it into the code on sheet2?

If you wanted to use code to enter that formula in a cell you would do:

Worksheets("Sheet2").Range("F6").Formula = _
"=SUMIF(Sheet1!B:B,""warrant"",Sheet1!C:C)"

--
Regards,
Tom Ogilvy


"Annette" wrote in message
...
How would I add this formula into the code on Sheet2?

=SUMIF(Sheet1!B:B,"warrant",Sheet1!C:C)









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 code the formula? Eric Excel Discussion (Misc queries) 5 June 24th 09 04:41 PM
formula code nobbyknownowt Excel Discussion (Misc queries) 5 August 10th 06 05:40 PM
formula or code Monty Excel Worksheet Functions 10 January 10th 05 09:06 AM
Not sure if I need a formula or some code.... Candee[_19_] Excel Programming 5 April 16th 04 04:50 PM
Formula or code John Gittins Excel Programming 0 July 9th 03 04:16 PM


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