+ Reply to Thread
Results 1 to 3 of 3

Trouble with getting excel to choose one text over another to deliver a value

  1. #1
    Registered User
    Join Date
    04-28-2014
    Location
    Chicago suburbs
    MS-Off Ver
    Excel 2003
    Posts
    23

    Trouble with getting excel to choose one text over another to deliver a value

    Hello.

    I'm having difficulty with an additive formula based on text in a cell.

    A cell may include "finished" or "partially finished." I'm having difficulty with it returning the values for both when it says "partially finished". I need the cell to return one value for "finished" (1) and a different value for "partially finished" (.5). It seems it's finding the words "partially" and "finished" as two separate values and adding both together (1.5) when the cell says "partially finished."

    How can I make the cell choose one value?

    Thanks from a newbie.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Trouble with getting excel to choose one text over another to deliver a value

    have you tried something like:
    =IF(ISERROR(SEARCH("partially finished",A1,1)),IF(ISERROR(SEARCH("finished",A1,1)),0,1),0.5)

  3. #3
    Registered User
    Join Date
    04-28-2014
    Location
    Chicago suburbs
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Trouble with getting excel to choose one text over another to deliver a value

    Thank you, ragulduy, that works for part of it. The syntax of which I'm uncertain is partially fixed by your suggestion, but I also need to be able to add to that, and that is where there's a comma or parenthesis or something I'm not doing right. In addition to selecting the finished/unfinished, I also need to be able to add to it based on other features, such as exterior access or bathroom rough-in.

    In other words, very simply put,

    =IF(ISERROR(SEARCH...)) + (IF(ISNUMBER(SEARCH(""Exterior Access",otherpage!BK2,1)),".15","0")) + ((IF(ISNUMBER(SEARCH("bathroom rough-in",otherpage!BK2,1)),".5","0"))

    or something like that.

    PArt of the issue is that the info on otherpage is imported and all these things come in a single field, so my sheet needs to be able to figure values from a single field and select as well as add. Doable?

    Thanks. I know only enough excel as to be a danger to myself and others. Much appreciated!

+ 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. Deliver UserForm Array to a class
    By Guesty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-12-2013, 08:56 AM
  2. Deliver a dashboard with powerpivot
    By diver360 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 04-18-2013, 05:28 PM
  3. trouble importing text file into excel 2003
    By macquarl in forum Excel General
    Replies: 1
    Last Post: 08-28-2008, 12:07 PM
  4. VBA To Deliver Object List?
    By (PeteCresswell) in forum Excel General
    Replies: 3
    Last Post: 05-21-2006, 10:38 PM
  5. search and deliver
    By damorrison in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-05-2006, 05:30 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