+ Reply to Thread
Results 1 to 8 of 8

IF statements

  1. #1
    Registered User
    Join Date
    04-21-2014
    Location
    Indiana, USA
    MS-Off Ver
    Excel 2003
    Posts
    34

    Unhappy IF statements

    I am trying to create an IF statement to do the following.

    Apply a formula to cell A1 if cell A1 is blank apply a formula to cell B1 if cell B1 is blank apply formula to cell C1.

    Can anyone help me with this

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: IF statements

    You want a formula IN cell A1 that says if this cell (A1) is blank do something - is that correct? OR are you saying that you want to have a value in A1 but if there is no value in A1 then apply this formula to A1?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,795

    Re: IF statements

    can you expand a little

    what formula do you want to apply - and where do you want the result of the IF statement

    =IF( A1="", formula using B1, IF( B1="", formula using C1, formula to use if A1 and B1 blank))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: IF statements

    hi and welcome to the forum

    You will have to supply more detail to your requirements. formulas cannot "apply" a formula to another cell, a formula in a cell responds to data fed to it from other cells.

    What exactly are you trying to do?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    04-21-2014
    Location
    Indiana, USA
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: IF statements

    A1 B1 C1 D1
    Profit Margin Day A Profit Margin Day B Profit Margin Day C Total
    Item 1 27 22 18 X
    Item 2 37 33 X
    Item 3 15 X

    I am looking for a formula to apply to column D that uses a weighted average but uses IF statements to that if a value is left out in one of the days then it skips over and uses the next days value.
    Attached Images Attached Images

  6. #6
    Registered User
    Join Date
    04-21-2014
    Location
    Indiana, USA
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: IF statements

    Does any have a solution to this yet?

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: IF statements

    One problem might be that trying to work from a jpg isn't helpful. Your screen shot does not show any of the cells you mention in your post (A, B, C etc.). For more help it would be good for you to upload a sample spreadsheet with what you have and the results you expect.

  8. #8
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: IF statements

    Quote Originally Posted by zmbaker View Post
    Does any have a solution to this yet?
    If what etaf gave didn't already answer your question, then I don't understand what you're looking for.

+ 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. Reading If statements and formulating values from if statements
    By crnam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-2013, 05:20 AM
  2. questions with if statements and nested if statements
    By Pat Excel in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-03-2013, 01:41 PM
  3. Nested If statements / logic statements
    By Brainless_09 in forum Excel General
    Replies: 3
    Last Post: 06-17-2009, 02:59 PM
  4. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  5. operator statements, shorting when reusing one of the statements?
    By KR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2005, 02: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