+ Reply to Thread
Results 1 to 7 of 7

Formula help - coupon #

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Oklahoma City, OK
    MS-Off Ver
    Excel 2010
    Posts
    47

    Formula help - coupon #

    I need help with a formula. I have highlighted it in the attachment.
    Here is the jist..... There are 8 apartment buildings and 15 apartments in each building.
    Coupon books need to be made for each apartment & each month.
    I am having a problem with the coupon number. It works for the Building 1, apartment 1, and months 1-12, but when I go to the next apartment, instead of going to the next number, it goes to 2.

    (Current formula is Building # * Apartment # * Month #)

    EX. Building 1
    Apartment 1
    Month 8
    = coupon 8

    Building 1
    Apartment 2
    Month 1
    = coupon 2
    SHOULD BE 13
    (coupon numbers should keep going up, and not repeat)

    There will be 1440 coupons numbered 1-1440.

    Yes, this is for a school work problem, but not homework, I promise. It is a problem we are working on in class and the professor could not figure it out and has tasked me into figuring it out.
    Personally, I would probably do 1-2-1 as the coupon number that way I could quickly see the building #-Apartment #- Month, but since that is not how he wants the problem solved, I guess I need to do it his way.

    Thank you for any help you can provide.


    A6.xls

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Formula help - coupon #

    I really don't know what to say. If this teacher is for math, they need to find another line of work. While the solution is not super-obvious, it should be within the realm of a math teacher. I'm not trying to be a jerk, but ... wow.

    Essentially, you need to skip 12 for every apartment, so that is a multiplier used against apartment numbers. You'll need another muliplier for building. Use those multipliers against your variables (building and apartment) and sum.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,284

    Re: Formula help - coupon #

    Try this one:
    Please Login or Register  to view this content.
    Last edited by popipipo; 10-03-2013 at 04:20 PM.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Formula help - coupon #

    A nested if statement for the coupon number will work

    I have only done the first three buildings, but you should get the idea

    =IF(C7=1,C7*C8*C9,IF(C7=2,180+(C8*C9),IF(C7=3,360+(C8*C9))))

    Alternatively, you could do the same thing with a VBA statment using Case Select
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    06-27-2013
    Location
    Oklahoma City, OK
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Formula help - coupon #

    Thank you both for the solutions. I used the one from popipipo and it worked, so I am not moving forward with the one from alansidman. I am saving it for future use though. Thanks again.



    Also, this is not for a math class, it is for a computer class.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Formula help - coupon #

    You are welcome. Smart choice in choosing the shorter solution.

  7. #7
    Registered User
    Join Date
    06-27-2013
    Location
    Oklahoma City, OK
    MS-Off Ver
    Excel 2010
    Posts
    47

    Wink Re: Formula help - coupon #

    Quote Originally Posted by alansidman View Post
    You are welcome. Smart choice in choosing the shorter solution.
    It was also the one that at this time required less work from me. Multi-tasking work-work and school-work at the same time.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Coupon date gantt chart help
    By FSUMBA97 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-19-2013, 11:52 AM
  2. Soccer Pools Coupon
    By shayfinn in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-30-2010, 08:41 PM
  3. [SOLVED] Bond YTM if Coupon Payment is at Maturity?
    By Babar Ali in forum Excel General
    Replies: 0
    Last Post: 10-25-2005, 10:05 AM
  4. How do I calculate yield for multiple coupon resets?
    By analyst in forum Excel General
    Replies: 0
    Last Post: 10-17-2005, 11:05 AM
  5. Replies: 2
    Last Post: 05-03-2005, 12:06 PM

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