+ Reply to Thread
Results 1 to 4 of 4

work with IF

  1. #1
    Forum Contributor
    Join Date
    10-20-2005
    Posts
    127

    work with IF

    Once again Hi to all of u.


    A1 contains date of purchase b1 contains date of sale & C1 contains the status.
    For eg. If i purchase a scrip on 9 Oct 2005 & sell it on the same date the C2 shows status as "Intraday" ,similarly if i Purchase a scrip on 9 Oct 2005 & sell it on 12 Oct 2005 the C column shows the status as "Sold".But if i buy a scrip on 9 Oct 2005 & sells it on 10 Oct 2005 the C column shows the status "Intraday".Similarly if I buy a scrip on 09 Oct 2005 & dont sell till present date the C column shows "Holding".

    For Eg.

    A B C
    9th Oct 9th Oct Intraday
    9th Oct 10th Oct Intraday
    9th Oct 12th Oct Sold
    9th Oct
    Last edited by Little Master; 10-27-2005 at 06:04 AM.

  2. #2
    Ian
    Guest

    Re: work with IF

    =IF(B1="","Holding",IF(B1-A1<=1,"Intraday","Sold"))

    I'm assuming column B is blank until sold.

    --
    Ian
    --
    "Little Master" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Once again Hi to all of u.
    >
    >
    > A1 contains date of purchase b1 contains date of sale & C1 contains the
    > status.
    > For eg. If i purchase a scrip on 9 Oct 2005 & sell it on the same date
    > the C2 shows status as "Intraday" ,similarly if i Purchase a scrip on
    > 9 Oct 2005 & sell it on 12 Oct 2005 the C column shows the status as
    > "Sold".But if i buy a scrip on 9 Oct 2005 & sells it on 10 Oct 2005 the
    > C column shows the status "Intraday".Similarly if I buy a scrip on 09
    > Oct 2005 & dont sell till present date the C column shows "Holding".
    >
    > For Eg.
    >
    > A B C
    > 9th Oct 9th Oct Intraday
    > 9th Oct 10th Oct Intraday
    > 9th Oct 12th Oct Sold
    > 9th Oct
    >
    >
    > --
    > Little Master
    > ------------------------------------------------------------------------
    > Little Master's Profile:
    > http://www.excelforum.com/member.php...o&userid=28227
    > View this thread: http://www.excelforum.com/showthread...hreadid=479728
    >




  3. #3
    Forum Contributor
    Join Date
    10-20-2005
    Posts
    127
    Thanks Ian it worked for me.

  4. #4
    Ian
    Guest

    Re: work with IF

    Glad to help. Thanks for the feedback.

    --
    Ian
    --
    "Little Master" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Thanks Ian it worked for me.
    >
    >
    > --
    > Little Master
    > ------------------------------------------------------------------------
    > Little Master's Profile:
    > http://www.excelforum.com/member.php...o&userid=28227
    > View this thread: http://www.excelforum.com/showthread...hreadid=479728
    >




+ 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