Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2015, 03:45 AM
Smithy02468 Smithy02468 is offline Conditional calculation of cell entries Windows 7 64bit Conditional calculation of cell entries Office 2010 64bit
Novice
Conditional calculation of cell entries
 
Join Date: Oct 2014
Posts: 9
Smithy02468 is on a distinguished road
Default Conditional calculation of cell entries

Conditional calculations of cell entries
I am trying to set up a spreadsheet which will automatically work out the figure on entering the data in the appropriate cell and use this to calculate the other appropriate figure. e.g. when given a daily figure and enter this into the daliy cell location it will automatically work out the annual figure. There is no formula in the cell where it has been entered. I have attached a typical setup of the file i would be looking to create.



Just to give a bit mor background, i am looking to create a spreadsheet which will compare domestic energy supplies on a level playing field as the suppliers are changing the ways in which they quote prices, e.g. including tax excluding tax, daily standing charge, annual standing charge etc.

I have attached a file to show this

Any help appreciated on this.

Regards

Colin
Attached Files
File Type: xlsx calc.xlsx (11.1 KB, 7 views)
Reply With Quote
  #2  
Old 06-11-2015, 04:20 AM
macropod's Avatar
macropod macropod is offline Conditional calculation of cell entries Windows 7 64bit Conditional calculation of cell entries Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Without knowing what the calculation is supposed to return, the code would be anyone's guess. As it is, it looks like the value in pounds in column D should be the amount in column c * 3.65. You don't really need a macro for that!
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 06-11-2015, 04:48 AM
Smithy02468 Smithy02468 is offline Conditional calculation of cell entries Windows 7 64bit Conditional calculation of cell entries Office 2010 64bit
Novice
Conditional calculation of cell entries
 
Join Date: Oct 2014
Posts: 9
Smithy02468 is on a distinguished road
Default

well i don't want to have to keep entering the formula in each cell, i envisaged something along the lines of using the cells in a column which would detect if an entry was made in a column it would automatically generate the adjacent column values as the data differs from different sources depending where it is from
Reply With Quote
  #4  
Old 06-11-2015, 04:57 AM
macropod's Avatar
macropod macropod is offline Conditional calculation of cell entries Windows 7 64bit Conditional calculation of cell entries Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Since it's basically the same formula for all cells, you could just input it once and copy down as far as needed...

You could even add an IF test to hide the 0s that would otherwise appear until you actually input something into the adjacent cell.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 06-11-2015, 06:15 AM
Smithy02468 Smithy02468 is offline Conditional calculation of cell entries Windows 7 64bit Conditional calculation of cell entries Office 2010 64bit
Novice
Conditional calculation of cell entries
 
Join Date: Oct 2014
Posts: 9
Smithy02468 is on a distinguished road
Default

Well you get circular reference error doing that, hence why i was asking the question
Reply With Quote
  #6  
Old 06-11-2015, 06:21 AM
macropod's Avatar
macropod macropod is offline Conditional calculation of cell entries Windows 7 64bit Conditional calculation of cell entries Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

What formula are you using?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 06-11-2015, 06:27 AM
Smithy02468 Smithy02468 is offline Conditional calculation of cell entries Windows 7 64bit Conditional calculation of cell entries Office 2010 64bit
Novice
Conditional calculation of cell entries
 
Join Date: Oct 2014
Posts: 9
Smithy02468 is on a distinguished road
Default

In Cell C6 for daily amount, formula is D6/365 In Cell D6 for annual amount formula is C6*365
Reply With Quote
  #8  
Old 06-11-2015, 06:35 AM
macropod's Avatar
macropod macropod is offline Conditional calculation of cell entries Windows 7 64bit Conditional calculation of cell entries Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

OK, so you're trying to calculate both columns. And, since each references the other, you're getting the circular references.

Might I suggest that a better approach could be to have separate input & output columns? That way you'll have a lasting record of which figures you actually input for each provider. If you simply use a macro to update whichever column you don't input data into, you'll lose that visual record.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional calculation of cell entries Question re: Conditional formatting (cell occurs after another cell) Saywarder Excel 1 04-20-2015 11:29 AM
Conditional Cell Formatting: Alternating Cell Checks corbott Excel 4 12-16-2014 01:51 PM
Conditional Formatting based on Value of Another Cell SteveBump Excel 3 03-07-2014 09:16 AM
Conditional formatting value change of same cell tcalhoun Excel 0 04-25-2013 07:25 AM
How can I fill cell color starting from Cell D5 using Conditional formatting instead Learner7 Excel 0 07-08-2010 05:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:20 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