Quantcast
Excel Formula - Beyond.ca - Car Forums
Results 1 to 6 of 6

Thread: Excel Formula

  1. #1
    Join Date
    Oct 2004
    Location
    AB/NS
    Posts
    3,284
    Rep Power
    24

    Default Excel Formula

    I dont know a whole lot about excel, but this seems straight forward - yet I can't get it to display properly

    =IF(F4="F","",H4*(IF(F4="M","0",H4))*(IF(F4="", "", H4)))

    Basically F column is tracking Male or Female, M = 0, F = a blank cell

    However continuing on down the page, If I havent typed M or F in the F column and the cell is blank, I want the output to remain blank in H column. Under the current formula its giving me 0 if blank, or M and F works fine displaying nothing.
    Last edited by Supa Dexta; 11-24-2013 at 11:49 PM.

  2. #2
    Join Date
    Mar 2004
    Location
    Calgary
    My Ride
    Fiesta ST
    Posts
    2,942
    Rep Power
    24

    Default

    Add another if statement at the start to check from a blank cell

    =if(F4="","", existing formula)

  3. #3
    Join Date
    May 2007
    Location
    Calgary
    Posts
    50
    Rep Power
    0

    Default

    You can also use:

    =IFERROR(IF(F4="F","",H4*(IF(F4="M","0",H4))*(IF(F4="", "", H4))),"")

  4. #4
    Join Date
    Jul 2008
    Location
    Transnistria
    My Ride
    Exploded.
    Posts
    8,226
    Rep Power
    51

    Default

    Necro bump!

    If you have a string of words in one excel cell such as,

    "3x bananas 4y apples 6s flowers"

    How can you pull "4y" out of the string and into another cell if the associated keyword is "apples"

  5. #5
    Join Date
    Jun 2009
    Location
    Calgary
    Posts
    28
    Rep Power
    0

    Default

    Quote Originally Posted by flipstah View Post
    This quote is hidden because you are ignoring this member. Show Quote
    Necro bump!

    If you have a string of words in one excel cell such as,

    "3x bananas 4y apples 6s flowers"

    How can you pull "4y" out of the string and into another cell if the associated keyword is "apples"
    It would be better if you post a better example of what you are trying to accomplish. There are many ways to do this depending on a few things (is string always same length? Always separated by space?)

    For your above example the easiest way would be:
    Data Tab>> Text to Columns button>> Switch to Delimited >>Unclick tab, click space box>> next >> next> Finish. This will put each word separated by a space into a cell i.e 3x in A1 bananas in B1 4y in C1... if you are only concerned about apples then just click do not import on other cells and "3x bananas 4y apples 6s flowers" will be replaced by "apples"

  6. #6
    Join Date
    Sep 2004
    Location
    Calgary
    Posts
    48
    Rep Power
    0

    Default

    [QUOTE=Mogg;4763461]It would be better if you post a better example of what you are trying to accomplish. There are many ways to do this depending on a few things (is string always same length? Always separated by space?)

    Not enough information as Mogg mentioned. If you need a formula, you could use the find, left, right functions.

    Cell A2 - "3x bananas 4y apples 6s flowers"
    Cell B2 - =RIGHT(LEFT(A2,FIND("apples",A2)-2),2)

Similar Threads

  1. Excel Formula Hel

    By lasimmon in forum Computers, Consoles, and other Electronics
    Replies: 4
    Latest Threads: 06-25-2015, 09:48 AM
  2. Excel Formula Help

    By sexualbanana in forum Computers, Consoles, and other Electronics
    Replies: 5
    Latest Threads: 02-17-2011, 01:36 PM
  3. Replies: 5
    Latest Threads: 08-12-2003, 10:25 PM
  4. Computer Trick II (for those that have excel 97)

    By Monster Hui in forum General
    Replies: 12
    Latest Threads: 04-04-2003, 12:37 PM
  5. microsoft excel???

    By Import_Girl in forum General
    Replies: 1
    Latest Threads: 03-31-2003, 01:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •