Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2014, 11:21 AM
mbesspiata mbesspiata is offline Copying a Changing cell value to one cell Windows 7 64bit Copying a Changing cell value to one cell Office 2010 64bit
Advanced Beginner
Copying a Changing cell value to one cell
 
Join Date: Mar 2011
Location: Virginia
Posts: 57
mbesspiata is on a distinguished road
Default Copying a Changing cell value to one cell

I have a report where I have the total of ins and outs for the month but I want to show the last months total ONLY in one cell p8. I will use that one cell for calculations in another sheet in the workbook. How can I have one cell show a value that will move from c9 to n9 over the course of a year? Cells c7 and c8 will be totaled to c9 and I need that value to show up in p8 but each new month the total will need to move to the cell to the right.

Mike
Reply With Quote
  #2  
Old 04-29-2014, 02:16 PM
gebobs gebobs is offline Copying a Changing cell value to one cell Windows 7 64bit Copying a Changing cell value to one cell Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Not knowing much about the structure of your sheet other than what I've been able to decipher from your post, here's my first stab at it...

If the headings of your columns (i.e. row 1) are dates, you can do an HLOOKUP:

=HLOOKUP(DATE(YEAR(NOW()),MONTH(NOW())-1,1),C1:N9,9,FALSE)

Basically, the HLOOKUP looks for the date that is one month previous to now. Of course, this won't work so well when it's January and it looks for a month=0.

Attached is test.xlsx illustrating how this is done.
Attached Files
File Type: xlsx test.xlsx (9.3 KB, 6 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying data from one cell to another where condition is third cell fairyca Excel 4 03-30-2014 08:22 AM
Changing Cell address within a formula vermont_past Excel 12 09-21-2012 12:15 PM
Copying part of a cell to a new cell paulw793 Excel 7 01-27-2012 10:46 AM
Copying a Changing cell value to one cell Copying data from one cell to another automatically mrphilk Excel 4 06-10-2010 11:52 PM
Copying a Changing cell value to one cell Code for Changing Cell Backgrounds leroytrolley Excel 2 12-05-2008 02:05 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:08 AM.


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