+ Reply to Thread
Results 1 to 3 of 3

If Function for 2 calculations

  1. #1
    Linda Wilson
    Guest

    If Function for 2 calculations

    I want the cell to do a calculation based on the contents of the preceeding
    cell. If the preceeding cell contains R, I want it to complete one
    calculation, but if the cell contains something different, I want it to
    complete a different calculation.

    Can anyone provide a suggestion for this?

    Thank you.



  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    in A2 put

    =IF(OFFSET(A2,-1,0)="r",1+2,3+4)

    This should work

    --

    Quote Originally Posted by Linda Wilson
    I want the cell to do a calculation based on the contents of the preceeding
    cell. If the preceeding cell contains R, I want it to complete one
    calculation, but if the cell contains something different, I want it to
    complete a different calculation.

    Can anyone provide a suggestion for this?

    Thank you.

  3. #3
    MarkN
    Guest

    RE: If Function for 2 calculations

    Hi,

    Try using an IF function, =IF(A1="R",A2*20%,A2*30%). In the function, A1="R"
    is a logical test that evaluates to TRUE or FALSE. If A1="R", the logical
    test evaluates to TRUE, and the calculation A2*20% will be returned to the
    active cell. If A1 does not equal "R", the logical test evaluates to FALSE,
    and the calculation A2*30% will be returned to the active cell.
    --
    Hope this helps,
    MarkN


    "Linda Wilson" wrote:

    > I want the cell to do a calculation based on the contents of the preceeding
    > cell. If the preceeding cell contains R, I want it to complete one
    > calculation, but if the cell contains something different, I want it to
    > complete a different calculation.
    >
    > Can anyone provide a suggestion for this?
    >
    > Thank you.
    >
    >


+ 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