+ Reply to Thread
Results 1 to 3 of 3

Output data in multiples of X

  1. #1
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    2021
    Posts
    205

    Output data in multiples of X

    I need the output in B1 to be in multiples of the value in A1, rounded up.

    example:
    Value in A1 is 6
    random formula in B1: =IF(AND(N2>$AA$1,S2>0),ROUND((30/$AA$1)*AA2-Z2,0),IF(AND(N2>$AA$1,S2=""),ROUND((30/$AA$1)*AA2-Z2,0),IF(AND(N2<$AD$1,S2=""),ROUND((30/$AD$1)*AD2-Z2,0),IF(AND(N2<$AC$1,S2=""),ROUND((30/$AC$1)*AC2-Z2,0),IF(AND(N2<$AB$1,S2=""),ROUND((30/$AB$1)*AB2-Z2,0),IF(AND(N2=M2,N2<$AA$1,S2>0),ROUND(30*(AA2/N2)-Z2,0),IF(AND(N2<>M2,N2<$AA$1,S2>0),ROUND(AA2*(30/$AA$1)-Z2,0))))))))

    So if the resulting value of my B1 formula is 2.33, I'd like to have the output be 6. If the resulting value is 14.55, I'd like the output to be 18.

    Is this possible?

    thanks!
    Last edited by Ocean Zhang; 08-05-2013 at 08:38 PM.

  2. #2
    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: Output data in multiples of X

    =ceiling(all that, A1)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    2021
    Posts
    205

    Re: Output data in multiples of X

    Great, thanks! Actually, at first I thought "all that" was a command lol.

+ 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. Timestamped data from multiples sources
    By carrmatt02 in forum Excel General
    Replies: 1
    Last Post: 06-19-2013, 04:55 PM
  2. Populate multiples rows with data, then loop back and get next next row of input.
    By bungslea in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-09-2013, 07:16 AM
  3. VLookup returning same data when multiples exist
    By Laserfast in forum Excel General
    Replies: 8
    Last Post: 05-12-2011, 12:56 PM
  4. Macro to copy data from multiples files
    By p1rate78 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2009, 05:35 PM
  5. data validation: formula for validating only multiples of 10
    By Excelnovice in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2006, 02:25 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