+ Reply to Thread
Results 1 to 5 of 5

Set value of cell if text word is chosen

Hybrid View

garyw383 Set value of cell if text... 11-21-2013, 01:44 PM
ChemistB Re: Set value of cell if text... 11-21-2013, 01:49 PM
garyw383 Re: Set value of cell if text... 11-21-2013, 01:56 PM
ChemistB Re: Set value of cell if text... 11-21-2013, 04:49 PM
garyw383 Re: Set value of cell if text... 11-22-2013, 02:30 AM
  1. #1
    Registered User
    Join Date
    11-21-2013
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    4

    Set value of cell if text word is chosen

    Hi

    I created a column which has a drop down with the option of choosing the word blister or loose.

    What I would like to do is set the value of the cell to 1 if either word is chosen or the value would be zero if cell was left blank.

    Any help would be greatly appreciated

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Set value of cell if text word is chosen

    So you have a cell, let's say A1 and you used Data Validation to put a dropdown of blister or loose. Yes? But you don't want A1 to show Blister or Loose, you want it to show 1 or 0 (if nothing is chosen)? Since this column of dropdowns already exists, would they all read zero now or only after something on the same row is entered?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    11-21-2013
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Set value of cell if text word is chosen

    what i really want is the column to show either nothing,blister, or loose and at the bottom of the column to show how many cells had the words blister or loose

    This is a database for a collectible which is available in a blister pack or you could have it opened (loose). My end result is I want to know how many items there are either in blister or loose.

    Hope that makes sense

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Set value of cell if text word is chosen

    You would use a formula like so (assuming data in B2:B1000)
    Formula: copy to clipboard
    =COUNTIF($B$2:$B$1000, "blister")
    and
    Formula: copy to clipboard
    =COUNTIF($B$2:B$1000, "loose")
    Does that work for you?

  5. #5
    Registered User
    Join Date
    11-21-2013
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Set value of cell if text word is chosen

    That works perfectly!

    Thank you very much

+ 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. How to produce a merget text output of randomly chosen text values
    By SORENAA in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-16-2013, 04:53 PM
  2. Replies: 1
    Last Post: 01-25-2013, 09:51 PM
  3. Replies: 4
    Last Post: 12-06-2012, 04:25 PM
  4. if cell contains chosen text, add value from another cell in same row
    By desybabe in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-01-2012, 11:58 PM
  5. Simple Macro - Sum of values that are related to a sprecific word chosen by you.
    By Adam Brave in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-02-2012, 03:31 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