+ Reply to Thread
Results 1 to 4 of 4

add IF statement to CEILING function

  1. #1
    Registered User
    Join Date
    06-08-2010
    Location
    Los Angeles,USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    add IF statement to CEILING function

    I'm looking for some help to include IF into the following formula

    =IF (G21=IN), CEILING(((E23*F23*G23)/462)*D23,0.5), IF (G21=CM)CEILING(((E23*F23*G23)/366)*D23,0.5)
    Currently it is giving me an error I can't figure out. Appreciate the help

    thx
    MK
    Last edited by m1066189; 06-09-2010 at 03:17 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: add IF statement to CEILING function

    Maybe?

    =IF(G21="IN",CEILING(((E23*F23*G23)/462)*D23,0.5),IF(G21="CM",CEILING(((E23*F23*G23)/366)*D23,0.5),""))

    if none are true, a blank is returned.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    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: add IF statement to CEILING function

    As a wild guess of what you're trying to do,

    =CEILING(D23 * E23 * F23 * G23 / IF(G21 = "IN", 462, 366), 0.5)
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    06-08-2010
    Location
    Los Angeles,USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Thumbs up Re: add IF statement to CEILING function

    Perfect. This worked. Much appreciated!

+ 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