+ Reply to Thread
Results 1 to 4 of 4

probably easy but....

Hybrid View

  1. #1
    Registered User
    Join Date
    10-06-2005
    Posts
    3

    probably easy but....

    I'm wanting to build an if then statement, and if the value returns true then return one numeric value, and if it returns false it returns another numeric value.

    the details
    what i'm needing is to compare 2 values one will be constant (8) the other will be a variable. The variable will be divided by the constant, and if it will divide I want to return the value of 24, but if it won't I'll want to return the value of 18. Is this possible, and if so how?

    thanks in advance.

  2. #2
    Biff
    Guest

    Re: probably easy but....

    Hi!

    >The variable will be divided by the constant, and if it will divide


    Every number will "divide", except zero.

    Here's my best guess at what you want:

    A1 = the constant
    B1 = the variable

    =IF(MOD(B1,A1),18,24)

    Biff

    "obion" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm wanting to build an if then statement, and if the value returns true
    > then return one numeric value, and if it returns false it returns
    > another numeric value.
    >
    > the details
    > what i'm needing is to compare 2 values one will be constant (8) the
    > other will be a variable. The variable will be divided by the
    > constant, and if it will divide I want to return the value of 24, but
    > if it won't I'll want to return the value of 18. Is this possible, and
    > if so how?
    >
    > thanks in advance.
    >
    >
    > --
    > obion
    > ------------------------------------------------------------------------
    > obion's Profile:
    > http://www.excelforum.com/member.php...o&userid=27892
    > View this thread: http://www.excelforum.com/showthread...hreadid=473921
    >




  3. #3
    Registered User
    Join Date
    10-06-2005
    Posts
    3
    Hey Biff, thanks for your reply!! Worked like a charm.

  4. #4
    Biff
    Guest

    Re: probably easy but....

    You're welcome. Thanks for the feedback!

    Biff

    "obion" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hey Biff, thanks for your reply!! Worked like a charm.
    >
    >
    > --
    > obion
    > ------------------------------------------------------------------------
    > obion's Profile:
    > http://www.excelforum.com/member.php...o&userid=27892
    > View this thread: http://www.excelforum.com/showthread...hreadid=473921
    >




+ 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