Jump to content

Recommended Posts

Wonder if anyone can tell me if there is a way of doing this? I have a series of values (which could be either negative or positive) that will add up to Zero. However I don?t know which are positive or which are negative.


Is there a way of calculating how these numbers being one way or the other will add up to Zero and if there is more than one way of doing it?


I?m being lazy here as I should be able to deduce which is a negative or a positive and am just looking for a quicker option.

Link to comment
https://www.eastdulwichforum.co.uk/topic/83508-excel-query/
Share on other sites

ed_pete: (2 x (2^(n-1)) a.k.a 2^n, and not sure where - 2 comes from, are you maybe forgetting all/no - or all/no +?


With no further restrictions, reckon Jeremy's right.


There are some vaguely similar counting/summing problems which you can do in order of n steps, but these tend to have a kind of "ordering" implicit in them, such as finding the point in a set which gives two parts, the sums of each respective part giving minimal absolute difference.

Link to comment
https://www.eastdulwichforum.co.uk/topic/83508-excel-query/#findComment-927552
Share on other sites

Jeremy Wrote:

-------------------------------------------------------

> Are you talking about methodically assigning

> +ve/-ve signs to each number until you reach a

> solution?

>

> Easy to code in VBA.. but if your data set is

> large, you might find it surpisingly slow to

> compute.


We're talking about less than 40 values which already have a plus or minus assigned to them as a result of a reconciliation. However these add up to over ?4,000 in value. By a process of deduction, a plus or a minus can be reversed depending of the reason it is what it is in the first place. With the correct alterations the sum of the numbers will be zero.


May be easy to code in VBA if you know how.

Link to comment
https://www.eastdulwichforum.co.uk/topic/83508-excel-query/#findComment-927556
Share on other sites

Jeremy Wrote:

-------------------------------------------------------

> You can do it using Excel "Solver"

>

> Example here - very similar to what you need to

> do

> http://www.k2e.com/tech-update/tips/147-using-exce

> l-to-identify-entries-that-add-to-a-specific-value


Thanks Jeremy. Will try that after eating my rice cakes with peanut butter and banana.

Link to comment
https://www.eastdulwichforum.co.uk/topic/83508-excel-query/#findComment-927578
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Latest Discussions

    • The top front tooth has popped out.  Attempted to fix myself with repair kit bought from Boots, unfortunately it didn’t last long.  Tooth has popped out again.  Unable to get to dentist as housebound but family member can drop off.  I tried dental practice I found online, which is near Goose Green, but the number is disconnected.   The new dental practice in FH (where Barclays used to be) said it’s not something they do.  Seen a mobile dental practice where a technician comes to your home and does the repair but I’m worried about the cost. Any suggestions please? Thank you 
    • So its OK for Starmer to earn £74K/annum by renting out a property, cat calling the kettle black....... Their gravy train trundles on. When the Southport story that involves Starmer finally comes out, he's going to be gone, plus that and the local elections in May 2025 when Liebour will get a drumming. Even his own MP's have had enough of the mess they've made of things in the first three months of being in power. They had fourteen years to plan for this, what a mess they've created so quickly, couldn't plan there way out of a paper bag.   Suggest you do the sums, the minimum wage won't  be so minimum when it is introduced, that and the increase in employers national insurance contributions is why so many employers are talking about reducing their cohort of employees and closing shops and businesses.  Businesses don't run at a loss and when they do they close, its the only option for them, you can only absorb a loss for so long before brining the shutters down and closing the doors. Some people are so blinkered they think the sun shines out of the three stooges, you need to wake up soon. Because wait till there are food shortages, no bread or fresh vegetables, nor meat in the shops, bare shelves in the supermarkets because the farmers will make it happen, plus prices spiralling out of control as a result of a supply and demand market. Every ones going to get on the gravy train and put their prices up, It happened before during lockdown, nothing to stop it happening again. You don't shoot the hand that feeds you. Then you'll see people getting angry and an uprising start to happen.  Hungry people become angry people very quickly. 
    • Eh? Straight ahead of what?  If you turn left at Goose Green, as you also posted above, you end up at the library. Then the Grove. Then, unless you turn right at the South Circular, you end up at Forest Hill!
    • yes I’ve spotted this too — it’s near me and I’m very intrigued to see what it’ll be 👀👀👀👀      
Home
Events
Sign In

Sign In



Or sign in with one of these services

Search
×
    Search In
×
×
  • Create New...