Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Excel if/then formulas  (Read 3011 times)

0 Members and 1 Guest are viewing this topic.

trusky

    Topic Starter


    Rookie

    Excel if/then formulas
    « on: December 15, 2009, 11:39:54 AM »
    I would like to create a spreadsheet that uses a formula that recognizes a word in one column to add avalue to another column. Can anyone help?
    « Last Edit: December 15, 2009, 02:13:50 PM by trusky »

    ganjaman



      Beginner

      Thanked: 2
      Re: Excel if/then formulas
      « Reply #1 on: December 15, 2009, 02:22:40 PM »
      Hang in there some one will help. It's over my head  ::)
      I Love Allan XXX

      soybean



        Genius
      • The first soybean ever to learn the computer.
      • Thanked: 469
      • Computer: Specs
      • Experience: Experienced
      • OS: Windows 10
      Re: Excel if/then formulas
      « Reply #2 on: December 15, 2009, 02:33:03 PM »
      Your question is skimpy on details?  Can you elaborate, maybe give an example?

      trusky

        Topic Starter


        Rookie

        Re: Excel if/then formulas
        « Reply #3 on: December 15, 2009, 02:49:45 PM »
        Yes,
        If you look below and imagine it is an Excel spreadsheet, I would like for the formula to see if column 1 contains the word crane or runway I would like for value 24 (for runway) and 4 (for crane) to be automatically added to column C.
               
          A                            B               C              D              E              F
             Descpition          Qty           Hrs Per     Total Hrs   Rate       Total
         1 38' runway   2   24   48   70   3360
         2 20' span crane   1   4   4   70   280

        trusky

          Topic Starter


          Rookie

          Re: Excel if/then formulas
          « Reply #4 on: December 15, 2009, 02:54:54 PM »
          It didn't post exactly the way it previewed. If you add spaces to the values to line them up with the letters across the top it will make more sense.

          oldun

          • Guest
          Re: Excel if/then formulas
          « Reply #5 on: December 15, 2009, 05:42:18 PM »
          Try it with this formula in column C.

          Code: [Select]
          =IF(NOT(ISERROR(SEARCH("runway",A2,1))),24,IF(NOT(ISERROR(SEARCH("crane",A2,1))),4,""))

          soybean



            Genius
          • The first soybean ever to learn the computer.
          • Thanked: 469
          • Computer: Specs
          • Experience: Experienced
          • OS: Windows 10
          Re: Excel if/then formulas
          « Reply #6 on: December 18, 2009, 10:33:16 AM »
          trusky, where do you stand on this now?  Was the formula posted by oldun helpful?  I was thinking the VLOOKUP function is what you need.