Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
So Tru Geo
 
Posts: n/a
Default Advice on Creating an Excel Formula or Macro - PLEASE HELP!!!!

In Excel 2000 - I need to create a formula or macro that will pull values,
from a column, based on color (or text if color won't work). Conditional
formatting will color a cell based on a condition but I need to be able to
define a condition based on either color. For example, a specific color is
in cell a1, a3, & a5 the value is in a2, a4, & a6. I need to create a formula
or macro in cell a7 that will add the values from a2, a4, & a6 based on the
condition (color) in cell a1, a3, & a5.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bearacade
 
Posts: n/a
Default Advice on Creating an Excel Formula or Macro - PLEASE HELP!!!!


This is very crude, I hope it helps.

I use the light yellow color as base, change as needed



Sub Macro1()

Dim temp As Integer

If Range("A1").Interior.ColorIndex = 36 Then temp = temp +
Range("A2").Value

If Range("A3").Interior.ColorIndex = 36 Then temp = temp +
Range("A4").Value

If Range("A5").Interior.ColorIndex = 36 Then temp = temp +
Range("A6").Value

Range("A7") = temp

End Sub


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=556136

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
Convert Excel 4 formula to Excel 2003 format The Gasell Excel Worksheet Functions 3 April 12th 06 05:07 PM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
after creating macro button, closed excel then restarted excel hjd43 Excel Discussion (Misc queries) 1 March 3rd 05 03:04 AM
Creating an EXCEL COUNTIF formula for a range of values Pat Walsh Excel Discussion (Misc queries) 5 January 21st 05 02:57 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


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