English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i.e. if you have one total and a whole list of numbers, can you use maybe goal seeker or solver to return to you, cominations of numbers which will equal your total from the list?

2007-02-12 05:30:04 · 7 answers · asked by JOHN Y 2 in Computers & Internet Programming & Design

7 answers

You can use brute calculating strength of excel to do the job. Here is the pseudo code
for x = 1 to selection.cells.count
for y = 2 to selection.cells.count
for z = 3 to selection.cells.count
if selection.cells(x) + selection.cells(y) +selection.cells(z) = numberyouwant
debug.print selection.cells(x) &", " & selection.cells(y) &", " & selection.cells(z)
endif
next
next
next

2007-02-12 17:56:05 · answer #1 · answered by unnga 6 · 0 0

1

2017-01-19 20:21:49 · answer #2 · answered by ? 2 · 0 0

Sorry at the moment I can't see how but I have added this q to my watch list an if enlightenment comes I will get back to you, I had a quick look at goal seeker but I can't see how you would make this work, If you could use an enormous if command I could see it working just, how long is the list of numbers that you want to search from?

2007-02-12 06:08:40 · answer #3 · answered by ♣ My Brainhurts ♣ 5 · 0 0

a raw text file uses a byte per character (number or space in your case) 8 million * 6 numbers plus spaces (some numbers are two digits) gives at least 100 million characters. which is approx 100mb file size. now if you put that in excel, it will save room for formatting and other settings, so it could be a huge file size. this will be a waste of time

2016-05-24 01:17:23 · answer #4 · answered by Anonymous · 0 0

The total in Excel done 2 ways
+A1+B1+C1
+sum(A1..E1)

If you select the cell and click "View"/"Formula bar" you will be able to view the actual formula. First option don't need any explanation. Second node says Cells ranging form A1 to E1 i.e. A1 + B1 + C1 +D1 +E1. Only thing to watch is when you say A1..E5 this means a square block of cells(kind of metrics) is used.

2007-02-12 07:01:05 · answer #5 · answered by askMahesh 3 · 0 1

Click on the total cell and then just look at the formula bar. It will give you the information you are looking for.

2007-02-13 00:43:49 · answer #6 · answered by Siu02rk 3 · 0 0

yes. in the box you want the3 total to appear write for example =a1+a2+a3 or somesuch and the system will add automatically

2007-02-12 05:42:56 · answer #7 · answered by vdv_desantnik 6 · 0 1

fedest.com, questions and answers