+ Reply to Thread
Results 1 to 6 of 6

IF with multiple condition and ABS

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2016
    Posts
    70

    IF with multiple condition and ABS

    dear friend,
    please help with this,

    a scenario like this;

    coloum A coloum B coloum C
    DEBIT/CREDIT/REFILL 10000 result(formula)

    RESULT IN C
    if coloum A contains Debit or Refill then coloum C result would be of coloum B same value 100000 but if coloum A is Credit then coloum C result would be negative -10000

    thanks in advance.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: IF with multiple condition and ABS

    In C2 (assuming your data starts on row 2) try =IF(A2="","",IF(OR(A2="Debit",A2="Refill"),-B2,B2)) and copy down.

  3. #3
    Registered User
    Join Date
    08-09-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2016
    Posts
    70

    Re: IF with multiple condition and ABS

    i think i am unable to explain it properly i have attach the sheet and i need the coloum in result highlithed in yelllow.
    Attached Files Attached Files

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: IF with multiple condition and ABS

    =IF(A2="","",IF(OR(A2="Debit",A2="Refill"),B2,-B2))

    Enter the above slightly amended formula in C2 and copy down as needed.

  5. #5
    Registered User
    Join Date
    08-09-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2016
    Posts
    70

    Re: IF with multiple condition and ABS

    yes thats great.

    thanx brother.

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: IF with multiple condition and ABS

    No problem.

    Apologies, it was my misreading of your original post that lead to the incorrect formula at first.

    Thanks for the feedback and please mark the post as "SOLVED" if you're happy you have a working answer.

    BSB.

+ 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: 1
    Last Post: 12-25-2012, 05:32 PM
  2. [SOLVED] how to sum with multiple condition
    By henry wirianto in forum Excel General
    Replies: 4
    Last Post: 10-11-2012, 04:32 AM
  3. [SOLVED] how to do multiple condition to get value
    By ricky82 in forum Excel General
    Replies: 1
    Last Post: 05-31-2011, 09:37 AM
  4. Replies: 6
    Last Post: 05-06-2010, 10:06 PM
  5. Multiple condition, multiple range formating
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-11-2009, 09:10 AM

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