+ Reply to Thread
Results 1 to 3 of 3

Thread: Help with appropriate function

  1. #1
    Registered User
    Join Date
    02-08-2012
    Location
    london uk
    MS-Off Ver
    Excel 2010
    Posts
    4

    Help with appropriate function

    Hello,

    Can someone please advise with a Excel problem I have.

    What I want to do is:
    I have a cell, say A1, with either u (for up) or d (for down) and I have an adjacent cell, B1 with a number in it say 10.

    Now in a third cell, C1 I want to add or subtract another number say 5 to the second cell, B1 depending if cell A1 contains a ‘u’ or ‘d’.

    So if cell A1 contains ‘u’ then cell B1 would = 10+5

    If cell A1 contains ‘d’ then cell B1 would = 10-5

    It sounds easy but I am not very good at finding the right function. I think it is ‘IF’ but that returns a value in the formula.

    Thanks for any help.

    Frank

  2. #2
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    Re: Help with appropriate function

    Hi Frank.

    Try this in C1

    =IF(A1="u",SUM(B1+5),B1-5)

    Hope to helps you.
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  3. #3
    Registered User
    Join Date
    02-08-2012
    Location
    london uk
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Help with appropriate function

    Thanks for a rapid response and a great answer!

    Frank

+ 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.2.0