+ Reply to Thread
Results 1 to 5 of 5

Need help again :D

  1. #1
    Registered User
    Join Date
    11-25-2005
    Posts
    18

    Need help again :D

    I did get a great reply to my problem the other day - but unfortunately I made a mistake in my explanation :/ - this is the prob:

    if anything is in cell A1 AND in cell B1 then show "ok" in cell C1
    if anything is in cell A1 and NOT in cell B1 then show "add order" in cell C1
    if nothing is in cell A1 and IS in cell B1 then show "add client" in cell C1
    if nothing is in either cell A1 or B1 then show "add client add order" in cell C1

    thanks again,

    Smeeg

  2. #2
    JE McGimpsey
    Guest

    Re: Need help again :D

    One way:

    =IF(COUNTA(A1:B1)=0,"ok",TRIM(IF(B1="","","add client") &
    IF(A1="",""," add order")))

    In article <[email protected]>,
    Smeeg <[email protected]> wrote:

    > I did get a great reply to my problem the other day - but unfortunately
    > I made a mistake in my explanation :/ - this is the prob:
    >
    > if anything is in cell A1 AND in cell B1 then show "ok" in cell C1
    > if anything is in cell A1 and NOT in cell B1 then show "add order" in
    > cell C1
    > if nothing is in cell A1 and IS in cell B1 then show "add client" in
    > cell C1
    > if nothing is in either cell A1 or B1 then show "add client add order"
    > in cell C1
    >
    > thanks again,
    >
    > Smeeg


  3. #3
    Arvi Laanemets
    Guest

    Re: Need help again :D

    Hi

    =IF(AND(A1<>"",B1<>""),"OK",IF(A1="","add client") & IF(AND(A1="",B1=""),"
    ","")) & IF(B1="","add order"))
    , or
    =CHOOSE(((A1="")*1+(B1="")*2)+1,"add client","add order","add order add
    client","OK")


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )



    "Smeeg" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I did get a great reply to my problem the other day - but unfortunately
    > I made a mistake in my explanation :/ - this is the prob:
    >
    > if anything is in cell A1 AND in cell B1 then show "ok" in cell C1
    > if anything is in cell A1 and NOT in cell B1 then show "add order" in
    > cell C1
    > if nothing is in cell A1 and IS in cell B1 then show "add client" in
    > cell C1
    > if nothing is in either cell A1 or B1 then show "add client add order"
    > in cell C1
    >
    > thanks again,
    >
    > Smeeg
    >
    >
    > --
    > Smeeg
    > ------------------------------------------------------------------------
    > Smeeg's Profile:
    > http://www.excelforum.com/member.php...o&userid=29099
    > View this thread: http://www.excelforum.com/showthread...hreadid=488673
    >




  4. #4
    JE McGimpsey
    Guest

    Re: Need help again :D

    Oops, had it backwards...

    IF(COUNTA(A1:B1)=2,"ok",TRIM(IF(B1="","add client","") & IF(A1="",
    "_add order", "")))


    where _ is substituted for a space character to avoid unfortunate
    linewrap.

    In article <[email protected]>,
    JE McGimpsey <[email protected]> wrote:

    > =IF(COUNTA(A1:B1)=0,"ok",TRIM(IF(B1="","","add client") &
    > IF(A1="",""," add order")))


  5. #5
    Registered User
    Join Date
    11-25-2005
    Posts
    18
    great. thanks for that.

    the 'choose' formula worked a treat.

    Smeeg

+ 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