+ Reply to Thread
Results 1 to 8 of 8

Formula for changing + & -

  1. #1
    Registered User
    Join Date
    03-26-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    2

    Post Formula for changing + & -

    Hi All

    consider two colum in one colum is to put if the numbers is of + or - (the simbol is entered manually ) i wanted the same courespondig vale in the next coulm which contains formula "A1 + B2"

    Example

    vale on A1 colum is "+" then on the next colum the formula should be automaticly changed to B1 + C1, simelteniously if A1 colum is entered "-" then the formula should be changed to B1 - C1.

    Hope every one understood my query, Request your help ..

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Formula for changing + & -

    can you attach sample file pls
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula for changing + & -

    a
    b
    c
    d
    1
    +
    44
    10
    54
    2
    -
    44
    10
    34


    a
    b
    c
    d
    1
    +
    44
    10
    =if(a1="+",b1+c1,if(a1="-",b1-c1,""))
    2
    -
    44
    10
    =if(a2="+",b2+c2,if(a2="-",b2-c2,""))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Formula for changing + & -

    Please Login or Register  to view this content.
    -If you think you are done, Start over - ELeGault

  5. #5
    Registered User
    Join Date
    03-26-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    2

    Re: Formula for changing + & -

    Thanks. " Sixthsense " Exactly what i wanted .
    Thanks all for the fast response

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,701

    Re: Formula for changing + & -

    @ELeGault: very clever and neat solution.

    Kind regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Formula for changing + & -

    Thanks, Hopefully the OP took a look... Was the shortest solution I could come up with -

    Was trying to make it run off any operator but after about 10 minutes I lost motivation.

    Cheers
    Last edited by ELeGault; 03-26-2015 at 10:57 AM.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,701

    Re: Formula for changing + & -

    ... but after about 10 minutes I lost motivation
    I can see how that might be the case

+ 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. Replies: 3
    Last Post: 11-28-2013, 02:11 AM
  2. copy formula down entire column while changing formula cell reference
    By am_hawk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2013, 11:34 AM
  3. [SOLVED] Changing CSE formula and changing Vlookup to Index Match
    By stockgoblin42 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-21-2013, 08:18 PM
  4. Replies: 0
    Last Post: 03-13-2013, 12:25 PM
  5. Formula for weekly average & changing daily formula
    By sandbach in forum Excel General
    Replies: 2
    Last Post: 11-01-2010, 08:15 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