+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Multiplying in an IF statment.

  1. #1
    Registered User
    Join Date
    04-06-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Multiplying in an IF statment.

    Hello again.

    First off i want to thank everyone that is posting great answers. there is a lot of great help here and it is very much appriciated.

    So, here's my problem. I'm trying to set my N1:N500 to do a spicific task. here is what i have:
    =IF((B69=" Ale"),G69*.1,IF((B69="Can Dark"),G69*.1,IF((B69="Can Premium "),G69*.1,IF((B69="Can Light"),G69*.1,IF((B69="Bottle Ale"),G69*.2,""))

    the parts in red are what i can't get to work. if i put a number in there instead of a formula then it works great, but its not working like this.

    Any Help would be greatly appriciated.

    thank you in advance!
    Last edited by khemikal; 04-18-2011 at 10:42 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,446

    Re: Multiplying in an IF statment.

    Hi,

    Try this:

    =IF(B69="Ale",G69*0.1,IF(B69="Can Dark",G69*0.1,IF(B69="Can Premium",G69*0.1,IF(B69="Can Light",G69*0.1,IF(B69="Bottle Ale",G69*0.2,"")))))

    careful where you use brackets, and spaces!
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    04-06-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Multiplying in an IF statment.

    Quote Originally Posted by sweep View Post
    Hi,

    Try this:

    =IF(B69="Ale",G69*0.1,IF(B69="Can Dark",G69*0.1,IF(B69="Can Premium",G69*0.1,IF(B69="Can Light",G69*0.1,IF(B69="Bottle Ale",G69*0.2,"")))))

    careful where you use brackets, and spaces!
    Thank you SOOOO MUCH!!

    Works PERFECT!!!!

+ 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