solving a matrix

johannes2008

New Member
Joined
Aug 20, 2010
Messages
45
Office Version
  1. 365
Platform
  1. Windows
Hello All

what I am trying to solve is this: In column A is the individual length of each section. In column B is the cumulative length. What I would like is for the user to enter either the section length or cumulative length for each row and then the code will fill in the missing values.

Any thoughts? the only way I can think of that will take care of all contingencies involves writing "if" statements for each conceivable circumstance.

Thanks
-Johannes
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
To do it without VBA, you'd need to do data entry in two columns (A & B) and calculations in two other columns (C & D). The formulas would have to prioritize section length vs cum length, and use one or the other.

Some conditional formatting in cols A & B (obscuring the lower priority cell if there were an entry in the higher priority cell) would make clear to the user which value is being used.
 
Upvote 0
Thanks shg for your reply. I am actually wanting to do it with VBA. But the only way I can think of is by writing numerous if statements.

Thanks
-Johannes
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,693
Members
452,938
Latest member
babeneker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top