+ Reply to Thread
Results 1 to 4 of 4

Multiply result of IF function in same cell

  1. #1
    Registered User
    Join Date
    12-06-2011
    Location
    Maine
    MS-Off Ver
    Excel 2010
    Posts
    10

    Multiply result of IF function in same cell

    Hi all,

    Using Excel 2010 and I've attached a sample file.

    My current formula in cell B4 says:
    =IF(B3="FlyCasting","$5",IF(B3="Archery","$5",IF(B3="FlyFishing","$5",IF(B3="Biking","$5","$0"))))

    I would prefer in cell B4 to automatically multiply the result of the above formula by the number in cell E3 but only if B3 is “FlyCasting”,”Archery”,or”FlyFishing”. If B3 is “Biking”, the formula should stand as-is with no multiplication.



    Is this possible?

    Thanks!

    Sample.xlsx
    Last edited by rockytop80; 01-10-2012 at 12:23 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Multiply result of IF function in same cell

    What about...

    =IF(OR(B3={"FlyCasting","Archery","FlyFishing"}),5*E3,IF(B3="Biking",5,0))
    HTH
    Regards, Jeff

  3. #3
    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,454

    Re: Multiply result of IF function in same cell

    Hi,

    Because you have cell B4 formatted as currency, you don't have to enter the dollar sign.

    This modification to your formula should do what you want

    =IF(B3="FlyCasting",5*E3,IF(B3="Archery",5*E3,IF(B3="FlyFishing",5*E3,IF(B3="Biking",5,0))))
    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".

  4. #4
    Registered User
    Join Date
    12-06-2011
    Location
    Maine
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Multiply result of IF function in same cell

    I tried sweep's formula because it's a simple variation on what I already have. Worked perfectly! Thanks so much.

+ 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