+ Reply to Thread
Results 1 to 3 of 3

Return the conditions from Nos.

  1. #1
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Return the conditions from Nos.

    Dear Friends

    I want to add the Numbers inside the boxes in C Column according to
    the position from A or B. I want to add the Nos. from A to B or B to A
    then if it is 0 or 9, the formula should print the value `TRUE'
    if it is not 0 or 9, then the formula should print the value `FALSE'

    thanks in advance


    thilagIF.xls

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Return the conditions from Nos.

    I looked at your data, and none of the amounts total more than 9 or 0, please check your calcs again.

    I used this formula to calc the amounts...
    =SUM(INDIRECT("C"&IF(MATCH("A",D1:D12,0)<MATCH("B",D1:D12,0),MATCH("A",D1:D12,0),MATCH("B",D1:D12,0))&":C"&IF(MATCH("A",D1:D12,0)<MATCH("B",D1:D12,0),MATCH("A",D1:D12,0),MATCH("B",D1:D12,0))+5)).

    wrapping it in or() and repeating it for = 9 or = 0 will give you TRUE or FALSE
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Return the conditions from Nos.

    IF2.xls

    Dear Mr. FDibbins

    Thanks for your immediate reply

    Refer the new file, Green = Result by formula Yellow = varying inputs

    Actually it is simple misunderstanding.And Sorry Iam not explaind properly
    A and B will not repeat more than 1 time.

    Sum of C3:C9 = 9 and the formula should work for the
    letters in Coloumn D to O and the values in Column C.

    In elloborate words in D3, E13, G13, H13, I13, J13, K13, M13, N13 and O13
    the formula result should be FALSE, since the condition is not macthing
    and the F13 and L13 it should be TRUE since Sum of C3:C9 = 9

    Also If Sum of C3:C9 = 0 then also it should return TRUE.


    thanks in advance

    thilag

+ 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