+ Reply to Thread
Results 1 to 6 of 6

Using an IF assign a value

  1. #1
    Registered User
    Join Date
    02-25-2005
    Location
    Branchport,NY
    Posts
    5

    Question Using an IF assign a value

    Can I put a formula in Column E that will assign a value to a cell in column A?

    If my cell in column A states "0 COUNT" I want to assign it the value of a cell in column B.

    IF A1="0 Count" then assign the value of B1 to A1. How do I do this?
    Last edited by amesatlast; 02-28-2005 at 05:49 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    I'm not sure I get this but anyhow...

    E1: the value of E1 can be: ") Count" or "0 COUNT" or anything?
    A1: =IF(OR(E1=") Count",E1="0 COUNT"),B1,E1)

    Ola Sandström
    Last edited by olasa; 02-28-2005 at 05:29 PM.

  3. #3
    Registered User
    Join Date
    02-25-2005
    Location
    Branchport,NY
    Posts
    5

    Question Using subtotals

    I am using subTotals so in my first column I have rows of 0 Count. I want to replace these rows with the title in the other Column but only if the cell equals 0 Count. Otherwise I want the subtotal that's there left alone. Does this better clarify my question?

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Ok. Then I would probably do like this:
    put the formula =B1 in A1
    make an Autofiler and filter by "0 COUNT"
    copy the A1-formula and paste it over the "0 COUNT".

    Ola Sandstrom


    Note:
    XL can't automatically "put a formula in a cell". But you can manually replace a formula by ... the option above or by menu: Edit>Replace... or >Goto>Special

  5. #5
    Registered User
    Join Date
    02-25-2005
    Location
    Branchport,NY
    Posts
    5

    Smile Thank you for the help

    It is very appreciated.

  6. #6
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Happy it work.
    Thanks for the feedback
    Ola

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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