+ Reply to Thread
Results 1 to 5 of 5

if one cell have number then other cell should have text

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    18

    if one cell have number then other cell should have text

    hi
    can u please solve this... if Cell A1 have text "FOC" then Cell B1 should have number(any number) and if Cell A1 have number then Cell B1 Should have "FOC".

    Please Solve this immediately

    Thanks in Advance

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: if one cell have number then other cell should have text

    Do you mean
    =IF(A1="FOC",1,IF(ISNUMBER(A1),"FOC","")) ?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: if one cell have number then other cell should have text

    lol.....immediately

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: if one cell have number then other cell should have text

    In B1 enter:

    =IF(ISNUMBER(A1),"FOC",IF(A1="FOC",1,""))
    Gary's Student

  5. #5
    Registered User
    Join Date
    03-28-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: if one cell have number then other cell should have text

    if A1 have 'FOC" then B1 should have any number and if A1 have any number then B1 should have "FOC" . means if A1 have any number then B1 SHOULD BE RESTRICTED WITH "FOC" AND IF A1 HAVE "FOC' THEN IN B1 WE CAN PUT ANY NUMBER OTHER THAN "foc"

    i think this will be solve only through VBA

+ 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