+ Reply to Thread
Results 1 to 6 of 6

Help with formulae

  1. #1
    Racingzeus
    Guest

    Help with formulae

    BHi All,
    I am new to excel, so any help would be great
    I want to automatically insert a set text string for instance, ABC into A1
    only if there is a number inserted into cell B1 for instance 12345.
    So if I insert 12345 into cell B1, A1 would then show ABC, if I insert 6789
    into B2, A2 would then again return ABC.
    However if there is no value in B1 or B2 then I need A1 and A2 to be blank
    and not return N/A# etc

  2. #2
    Bob Phillips
    Guest

    Re: Help with formulae

    =IF(B1=12345,"ABC","")

    put that formula in A1 and copy to A2

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "Racingzeus" <[email protected]> wrote in message
    news:[email protected]...
    > BHi All,
    > I am new to excel, so any help would be great
    > I want to automatically insert a set text string for instance, ABC into

    A1
    > only if there is a number inserted into cell B1 for instance 12345.
    > So if I insert 12345 into cell B1, A1 would then show ABC, if I insert

    6789
    > into B2, A2 would then again return ABC.
    > However if there is no value in B1 or B2 then I need A1 and A2 to be blank
    > and not return N/A# etc




  3. #3
    paul
    Guest

    RE: Help with formulae

    if you have more than one set of matchings text/number sets may help
    <A
    HREF="http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.excel.misc&lang=en&cr=US">this thread</A> may help

    http://www.microsoft.com/office/comm...&lang=en&cr=US
    --
    paul
    remove nospam for email addy!



    "Racingzeus" wrote:

    > BHi All,
    > I am new to excel, so any help would be great
    > I want to automatically insert a set text string for instance, ABC into A1
    > only if there is a number inserted into cell B1 for instance 12345.
    > So if I insert 12345 into cell B1, A1 would then show ABC, if I insert 6789
    > into B2, A2 would then again return ABC.
    > However if there is no value in B1 or B2 then I need A1 and A2 to be blank
    > and not return N/A# etc


  4. #4
    paul
    Guest

    RE: Help with formulae

    href=http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.excel.misc&mid=055d688b-4330-4e02-8385-da7e540725ee
    --
    paul
    remove nospam for email addy!



    "paul" wrote:

    > if you have more than one set of matchings text/number sets may help
    > <A
    > HREF="http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.excel.misc&lang=en&cr=US">this thread</A> may help
    >
    > http://www.microsoft.com/office/comm...&lang=en&cr=US
    > --
    > paul
    > remove nospam for email addy!
    >
    >
    >
    > "Racingzeus" wrote:
    >
    > > BHi All,
    > > I am new to excel, so any help would be great
    > > I want to automatically insert a set text string for instance, ABC into A1
    > > only if there is a number inserted into cell B1 for instance 12345.
    > > So if I insert 12345 into cell B1, A1 would then show ABC, if I insert 6789
    > > into B2, A2 would then again return ABC.
    > > However if there is no value in B1 or B2 then I need A1 and A2 to be blank
    > > and not return N/A# etc


  5. #5
    Racingzeus
    Guest

    Re: Help with formulae

    Hi Bob,
    I have tried the formula and it only works if the number I input into B1 is
    =12345 so I have modified it to =IF(B1>=0,"ABC","") so that any number I
    enterin B1 will return ABC in cell A1.
    This formula works just as I want it except that when I copy this formula
    into cells A2 through to A20 then these cells reveal ABC even though I have
    not input any number in the cells B2 through B20. I need cells A2 through A20
    to remain blank unless there is a number in the corresponding B cells.

    Cheers for all your help
    Dave
    "Bob Phillips" wrote:

    > =IF(B1=12345,"ABC","")
    >
    > put that formula in A1 and copy to A2
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (remove nothere from the email address if mailing direct)
    >
    > "Racingzeus" <[email protected]> wrote in message
    > news:[email protected]...
    > > BHi All,
    > > I am new to excel, so any help would be great
    > > I want to automatically insert a set text string for instance, ABC into

    > A1
    > > only if there is a number inserted into cell B1 for instance 12345.
    > > So if I insert 12345 into cell B1, A1 would then show ABC, if I insert

    > 6789
    > > into B2, A2 would then again return ABC.
    > > However if there is no value in B1 or B2 then I need A1 and A2 to be blank
    > > and not return N/A# etc

    >
    >
    >


  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,787
    Try

    =IF(ISNUMBER(B1),"abc","")

+ 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