+ Reply to Thread
Results 1 to 6 of 6

Stuck with a Formula

  1. #1
    Registered User
    Join Date
    10-16-2015
    Location
    Scotland
    MS-Off Ver
    Variety on different computers Mac & PC
    Posts
    3

    Stuck with a Formula

    Hi All

    I'm pulling my hair out trying to figure out a formula.

    I have a series of Codes in Column A : (IB, IS, IG, IW, IT, IBRO, ISRO & IGRO) which refer to products.

    In Column L, I want to calculate a formula which changes based on the above Codes as follows;

    IB, IS, IG, IW & IT all use the following formula
    =T9-M9-N9

    Whilst IBRO, ISRO & IGRO all need to use the following formula
    =(J9-V9)*62.5%

    When I first was unable to work out how to make my overall formula work I made a new workaround column, W ; which calculated part of the formula allowing me to simplify what I had to
    =W9*62.5%

    However I still can't get this to work.

    Here's my working formula….

    =IF((A9="IB, IS, IG, IW, IT"),T9-M9-N9,IF((A9="IBRO, ISRO, IGRO")W9*62.5%))

    My question is

    A - Can I combine my codes into single IF statements like above or should I have a separate IF statement for each one
    B - I'm assuming the reason my formula doesn't work is because of the two sub formula's - Is what I'm trying to do even possible or do I need to cross reference with more columns (I already have several extra columns as work arounds).

    As you can probably tell I'm not an advanced excel user (very much self taught) - I hope you don't mind me posting this in this forum. I've attached a blank template of what I'm trying to do if that helps clarify the problem.

    Many thanks

    Ewan
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: Stuck with a Formula

    Your if statement needs an or to work like this. so it would be
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    amotto

    If I helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Stuck with a Formula

    Try this one

    =IF(OR(A9={"IB","IS","IG","IW","IT"}),T9-M9-N9,IF(OR(A9={"IBRO","ISRO","IGRO"}),W9*62.5%,""))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    10-16-2015
    Location
    Scotland
    MS-Off Ver
    Variety on different computers Mac & PC
    Posts
    3

    Re: Stuck with a Formula

    Thanks Amotto

    Very much appreciate your help.

    That sort of makes sense to a layman.

    I can understand breaking the codes into separate comma's (I just thought I might be able to combine them - obviously not).

    However i'm getting warnings using your suggestion. Excel isn't liking it and is suggesting IF(Logical_test[value_if_true],[value_if_false]) which looks like what we have to me.

    Regards

    Ewan

  5. #5
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: Stuck with a Formula

    Missed one comma, the last one. Also it is best practice to end your final if statement.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-16-2015
    Location
    Scotland
    MS-Off Ver
    Variety on different computers Mac & PC
    Posts
    3

    Re: Stuck with a Formula

    Thanks to Amotto11 and AIKey - both your solutions work a treat.

    Can't begin to describe how much time I've spent on this.

    Very much appreciated.

    Ewan

+ 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. Stuck with a Formula!
    By Sereki in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-08-2014, 06:00 PM
  2. Need help with a formula. I am stuck :(
    By manno_88 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2013, 06:26 AM
  3. Stuck at work and stuck on a count function
    By gregfetzer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2012, 12:47 AM
  4. Stuck! Please help with formula
    By mcrubbin in forum Excel General
    Replies: 3
    Last Post: 05-15-2012, 06:07 PM
  5. Stuck on a formula!
    By NicciB in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2008, 01:28 PM
  6. [SOLVED] Stuck on formula
    By Decreenisi in forum Excel General
    Replies: 1
    Last Post: 01-10-2006, 08:25 AM
  7. [SOLVED] Formula Help... I'm really stuck here
    By Miko in forum Excel General
    Replies: 4
    Last Post: 09-07-2005, 04:05 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