+ Reply to Thread
Results 1 to 5 of 5

Number sequencing programming problem

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Number sequencing programming problem

    This is basically what I'm trying to do in Excel.
    I'm trying to find all the possible combinations of a number between 2795 and 5000 exclusive which can increase in increments of 5, and that is made up of 92 notes that include 5 euro notes, 10 euro notes, 20 euro notes, 50 euro notes and 100 euro notes.

    Can anyone code this for me?
    Thanks.
    Last edited by ScabbyDog; 04-29-2009 at 09:57 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Excel coding

    You can write numbers from 2795 to 5000 in an column and then:

    =IF(MOD(A1;185)=0;A1;"")

    Where A1 is first number and 185 is summ of notes (5+10+20+50+100). I assume you need only if you can use ALL of them.. Because if you can use ANY you would get all numbers.

    Edit: sorry, wrong one.. you need to have 92 bank notes exactly? for example: 5+5+5+5+10+10....+100+100.. and get combinations for all numbers?

    I didn't calculate it, but on first view I would say you can combine any of those numbers...
    Last edited by zbor; 04-29-2009 at 09:34 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Excel coding

    Quote Originally Posted by zbor View Post
    You can write numbers from 2795 to 5000 in an column and then:

    =IF(MOD(A1;185)=0;A1;"")

    Where A1 is first number and 185 is summ of notes (5+10+20+50+100). I assume you need only if you can use ALL of them.. Because if you can use ANY you would get all numbers.

    Edit: sorry, wrong one.. you need to have 92 bank notes exactly? for example: 5+5+5+5+10+10....+100+100.. and get combinations for all numbers?

    I didn't calculate it, but on first view I would say you can combine any of those numbers...
    yeah i need 92 bank notes exactly! and you dont have to use every note (5, 10, 20, 50, 100) and you can use any combination of notes.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Excel coding

    Sorry, too big for me :-S

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Excel coding

    Scabby Dog,

    Please take a few minutes to read the forum rules about thread titles, and then amend yours accordingly.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1