Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-20-2020, 12:54 PM
NBVC's Avatar
NBVC NBVC is offline Format a cell in a table Windows 10 Format a cell in a table Office 2016
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

You can colour a cell to meet your condition with conditional formatting, then use a sum formula to calculate the sum to that point.


eg.


Assuming your table is in A1:AF13 and you enter a date in, say, cell A17.


Then you would select cell A1 and go to Home|Condional Formatting|New Rule.
Select "use a formula...." and enter formula:


=ADDRESS(ROW(),COLUMN())=ADDRESS(MATCH(TEXT($A$17, "mmm"),$A$1:$A$13,0),MATCH(DAY($A$17),$A$1:$AF$1,0 ))


Click "Format" and choose from the "Fill" tab. Keep clicking "OK" until finished. You should see a cell coloured corresponding to date in A17.


Now to sum use formula:


=SUM(OFFSET($A$1,MATCH(TEXT(A17,"mmm"),$A$1:$A$13, 0)-1,1,1,MATCH(DAY(A17),$A$1:$AF$1,0)-2))
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Within a table format, a single cell can't automatically flow to the next page? laurieli Word 3 12-09-2015 07:09 PM
Pasting text from Excel cell into word without creating a table, and keeping the in-cell formatting hanvyj Excel Programming 0 08-28-2015 01:15 AM
Format a cell in a table Move table cell contents from one table to another table or cell in same table donaldadams1951 Word VBA 4 02-04-2015 03:54 PM
Format a cell in a table Format Painter doesn't work on Table Format? Joey Cheung Word Tables 1 08-20-2014 02:24 AM
Auto-populate an MS Word table cell with text from a diff cell? dreamrthts Word Tables 0 03-20-2009 01:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:13 PM.


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