+ Reply to Thread
Results 1 to 3 of 3

Nested if.... then stmts for several conditions

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    los angels, ca
    MS-Off Ver
    Excel 2007
    Posts
    27

    Nested if.... then stmts for several conditions

    View attached sample file where I need to adjust colum A formula to satisfy the listed conditions below:

    If GL_Account id (col B) starts with 1 and 1 in QRM Contra (column F), then it is an Asset else
    if GL_Account id (col B) starts with 1 and (-1) in QRM Contra (column F), then it is a Liability else
    If GL_Account id (col B) starts with 2 and 1 in QRM Contra (column F), then it is an Liability else
    If GL_Account id (col B) starts with 2 and (-1) in QRM Contra (column F), then it is an Asset else
    If GL_Account id (col B) starts with 3 and 1 in QRM Contra (column F), then it is an Liability else
    If GL_Account id (col B) starts with 3 and (-1) in QRM Contra (column F), then it is an Asset

    Thanks in advance for help
    Attached Files Attached Files
    Last edited by ccbank; 01-11-2013 at 11:52 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Nested if.... then stmts for several conditions

    hi ccbank. if you do not have other scenarios where you need a blank or anything other than the above, then try:
    =IF(OR(AND(LEFT(B7)="1",F7=1),AND(OR(LEFT(B7)="2",LEFT(B7)="3"),F7=-1)),"Assets","Liabilities")

    this formula only checks whether it's an Asset. if it doesnt fulfill, it'll be a liability

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    12-04-2012
    Location
    los angels, ca
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Nested if.... then stmts for several conditions

    Thanks Benishiryo

    Your formula worked great.

+ 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