Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-09-2015, 02:04 PM
grexcelman grexcelman is offline Perform calc in active cell then highlight based on formula result Windows 7 32bit Perform calc in active cell then highlight based on formula result Office 2003
Novice
Perform calc in active cell then highlight based on formula result
 
Join Date: Dec 2014
Posts: 21
grexcelman is on a distinguished road
Question Perform calc in active cell then highlight based on formula result

Looking to perform a calc after clicking a button, ABS(active cell - total cell) and if this result is greater than an average cell, highlight the active cell, else move on to the next cell in the range(a1:q10).
for example: in cell A1, take the absolute value of the difference between the active cell(a1) and the total cell(R1), and compare this result to the average value(S1). if the active cell(a1) is greater than average cell(s1), then highlight the active cell(a1). Perform this function for each cell within the range of A1:S14.



Guessing I need to use a 'for next loop' and within each increment, the active cell will run the above calc. After I run this macro, I could also click another button which removes all formatting. I plan to use this code on several sheets throughout my workbook. Can anyone help on this code? Thanks in advance!
Reply With Quote
 

Tags
active cell, calculation, loop



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perform calc in active cell then highlight based on formula result Show result of formula as a value in another cell Steve_D Excel 4 10-12-2014 07:38 PM
Perform calc in active cell then highlight based on formula result Excel 2007, highlight entire row based on data found in one cell MSofficeBLUE Excel 2 10-15-2013 09:51 PM
Change formula cell range based on cell value Scoth Excel 4 10-25-2012 07:51 AM
Can I create a formula that will show result in the same cell and let me copy it down CranstC Excel 1 02-11-2012 01:29 AM
Perform calc in active cell then highlight based on formula result How to highlight the row based on cell value? Learner7 Excel 1 12-11-2011 02:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft