+ Reply to Thread
Results 1 to 10 of 10

Count only even numbers and list number in linked column

  1. #1
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    Count only even numbers and list number in linked column

    Goodday

    I am sure this can be done with a formula but I dont know the correct syntax to achieve the result. In G7 the formula should be B7 devided by E7 -if that value is even then list A7.Column A en B is linked together. So it must discard all values thats not even numbers and ONLY list even numbers corresponding A column number.B15 have a value of 8 and E15 a value of 2. So 8/2 =4 and in G15 the value must be 9.

    Thanks in advance for any help.Sheet attached -Rep given for solution.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Count only even numbers and list number in linked column

    Your description isn't that clear.
    Try

    =IF(MOD((B7/E7),2)=0,LEFT(A7,2)+0,"")
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2019
    Posts
    209

    Re: Count only even numbers and list number in linked column

    Hi Ricklou,

    This the the formula i use based on your criteria.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Assumptions: Round up if decimal points greater than equal to .51 and round down if decimal points less than 0.50
    If the result is 0, Excel will consider the answer as even.
    Not 100% what you want to show if it is even by linking A&B. If the value is true, I return value of column A, otherwise empty.

    see attached workbook.

    Cheers
    Albert
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    Re: Count only even numbers and list number in linked column

    It should only count even numbers with other word if 8/4=4 it should not write 4 as the results but the corresponding column's A value in the case its 9. Hope it make better sense.Thanks special K -tested not right

  5. #5
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    Re: Count only even numbers and list number in linked column

    Quote Originally Posted by lexusap View Post
    Hi Ricklou,

    This the the formula i use based on your criteria.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Assumptions: Round up if decimal points greater than equal to .51 and round down if decimal points less than 0.50
    If the result is 0, Excel will consider the answer as even.
    Not 100% what you want to show if it is even by linking A&B. If the value is true, I return value of column A, otherwise empty.

    see attached workbook.

    Cheers
    Albert
    Hi albert thank you for your help tested yours too but its listing numbers thats not even -in this sheet only G15 and G27 should have values listed -your assumption is correct but is there any way to discard the other values? G11 have a value of 1 and 9 -how can that be seen as a even number ?#confused -tested not right too Thanks for any help -appreciated

  6. #6
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    Re: Count only even numbers and list number in linked column

    All other values must be discarded only even numbers must be listed -no decimals -sorry hope its clearer

  7. #7
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2019
    Posts
    209

    Re: Count only even numbers and list number in linked column

    Hi,

    G11 formula is =B11/E11, which is 1/9 = 0.1111. Round(0.111) = 0. Excel treat 0 as even number.

    What you want to show when Value is even? e.g Display column A or Display something else?
    What you want to show when Value is not even? e.g. Discard as in show blank?

    Cheers
    Albert

  8. #8
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    Re: Count only even numbers and list number in linked column

    Quote Originally Posted by lexusap View Post
    Hi,

    G11 formula is =B11/E11, which is 1/9 = 0.1111. Round(0.111) = 0. Excel treat 0 as even number.

    What you want to show when Value is even? e.g Display column A or Display something else?
    What you want to show when Value is not even? e.g. Discard as in show blank?

    Cheers
    Albert
    Hi albert

    If the number is even the the corresponding columns A number
    If the number is not even dont display anything

    Thanks once again for your help

  9. #9
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    Re: Count only even numbers and list number in linked column

    bump anyone ?

  10. #10
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2019
    Posts
    209

    Re: Count only even numbers and list number in linked column

    Hi,

    something like this?

    Cheers
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Check for Number in one column - then count specific numbers in a range.
    By CarlosM1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-29-2014, 05:10 AM
  2. [SOLVED] Count the number of unigue numbers based on number in another column.
    By ksmith4809 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2013, 09:11 AM
  3. Replies: 6
    Last Post: 12-22-2012, 05:04 PM
  4. Replies: 5
    Last Post: 09-01-2011, 03:46 AM
  5. Count the number of unique Numbers in a column
    By ajajmannen in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 05-10-2006, 01:10 PM

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