ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   combination (https://www.excelbanter.com/excel-programming/364850-combination.html)

[email protected][_2_]

combination
 
Hi, I have a columns labelles A B C D E under which are numbers. Is
there a way, in combinations of 3, to work out all the possible
combinations that = a certain total using vba.
eg, ABC, ABD, ABE......ETC. At the momment Im using varaiables and
simply saying x = a + b + c....etc. Then taking the variables and
finding which ones = my target. Thought Id ask incase somebodys already
done this.
Regards Robert


Gary''s Student

combination
 
See:


http://www.microsoft.com/communities...2-b6a19c6fc282
--
Gary's Student


" wrote:

Hi, I have a columns labelles A B C D E under which are numbers. Is
there a way, in combinations of 3, to work out all the possible
combinations that = a certain total using vba.
eg, ABC, ABD, ABE......ETC. At the momment Im using varaiables and
simply saying x = a + b + c....etc. Then taking the variables and
finding which ones = my target. Thought Id ask incase somebodys already
done this.
Regards Robert



[email protected][_2_]

combination
 
Thankyou fpr your reply, very usefull.
Regards Robert


Gary''s Student wrote:
See:


http://www.microsoft.com/communities...2-b6a19c6fc282
--
Gary's Student


" wrote:

Hi, I have a columns labelles A B C D E under which are numbers. Is
there a way, in combinations of 3, to work out all the possible
combinations that = a certain total using vba.
eg, ABC, ABD, ABE......ETC. At the momment Im using varaiables and
simply saying x = a + b + c....etc. Then taking the variables and
finding which ones = my target. Thought Id ask incase somebodys already
done this.
Regards Robert





All times are GMT +1. The time now is 03:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com