Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
KC KC is offline
external usenet poster
 
Posts: 107
Default Formatting data based on a cell range

I think your endrow is
range("C65536").end(xlup).row

"tarns" wrote:


How would to insert a formula to sum up all data in the current range if
it matches a value without hardcoding a large number like the 1000th row
of column C ??


Code:
--------------------

Sheets("List").Select
ListRowCount = ActiveSheet.UsedRange.Rows.Count 'Unfiltered Data.

Sheets("Complete Issues").Activate
Range("D7").Formula = "=COUNTIF(List!C3:C1000,C7)"


' I Wish to use something like to select a dynamic row range based on a variable .... "=COUNTIF(List!(Range("C3")(C,ListRowCount)),C 7)" ????

OR something like....

StartRow = 3
EndRow = Cells(ActiveSheet.UsedRange.Rows.Count, "C").End(xlUp).Row

But i need help cos it dont work.

--------------------


--
tarns
------------------------------------------------------------------------
tarns's Profile: http://www.excelforum.com/member.php...o&userid=32291
View this thread: http://www.excelforum.com/showthread...hreadid=520437


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
Data bar conditional formatting based on another cell Vivek[_2_] New Users to Excel 3 June 17th 09 08:10 AM
Formatting a cell based on other cells' data collyer3 Excel Worksheet Functions 1 December 2nd 08 05:02 PM
Formatting the color of a range of cells based on the value of one cell [email protected] Excel Worksheet Functions 3 October 20th 06 07:04 PM
How do I change cell color based upon data range within the cell? Chris Sanders Excel Worksheet Functions 1 March 6th 06 08:59 PM
Reference Data Range based on cell contents PCLIVE Charts and Charting in Excel 0 February 27th 06 03:01 PM


All times are GMT +1. The time now is 09:39 AM.

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"