+ Reply to Thread
Results 1 to 7 of 7

compare 2 columns and result in 3th column

  1. #1
    Forum Contributor
    Join Date
    12-18-2008
    Location
    Slovakia
    MS-Off Ver
    Office 2016
    Posts
    162

    compare 2 columns and result in 3th column

    Hi all,
    pls. how can i do with formula folowing:
    i have 3 columns.
    In column A is ID. In B is name and in C i want to add results.
    I want to add in column C info if is in this row ID, which is blank in column B, but the same ID have any info (is nonblank) in colum B (in othere row).
    how can i do that?
    thank you

    Example
    --------A--------B---------C
    1 ------23 ------ben ------ok
    2------ 23 ---------------BLANK
    3 ------555 -----sue------ok
    4------ 111 -----dag------ok
    5------ 111 -----pet------ok
    6 ------255 -----fee ------ok
    7 ------255 --------------BLANK
    8------ 255 --------------BLANK

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: compare 2 columns and result in 3th column

    Your post does not comply with Rule 5 of our Forum RULES. We have Seven question forums: Miscellaneous, General, Programming, Worksheet Functions, Charting, Excel 2007 Help and New Users. Please choose the appropriate forum, and post your question in ONLY one forum.

    Moved to Functions Forum
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor vijay2482's Avatar
    Join Date
    03-03-2009
    Location
    Paris,France
    MS-Off Ver
    Excel 2003
    Posts
    263

    Re: compare 2 columns and result in 3th column

    Hi,
    I have written a macro that will do your need.
    Please Login or Register  to view this content.
    Hope this helps!
    Attached Files Attached Files
    VIjay

    If you find any of the post useful to your question, please add to the contributor's reputation by clicking the blue scales icon in the blue bar of the post.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: compare 2 columns and result in 3th column

    In C! & copied down

    =IF(B1="","OK","Blank")

    or

    =IF(ISBLANK(B3),"Blank","OK")
    Last edited by royUK; 10-08-2009 at 04:32 AM.

  5. #5
    Forum Contributor
    Join Date
    12-18-2008
    Location
    Slovakia
    MS-Off Ver
    Office 2016
    Posts
    162

    Re: compare 2 columns and result in 3th column

    sorry for my mistake... i have shortcut and this is to bad forum


    Quote Originally Posted by vijay2482 View Post
    Hi,
    I have written a macro that will do your need.
    Please Login or Register  to view this content.
    Hope this helps!
    yes, this works
    thank you very much

    i figured out also this formula (but is it with my real column) wich works also:
    Please Login or Register  to view this content.
    to ROYUK.
    your code is not what i needed...this simply formulas i know..but thank you

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: compare 2 columns and result in 3th column

    You asked to use formulas & formulas are more efficient than using VBA!

    Tha's also why I moved this to the Functions forum

  7. #7
    Forum Contributor
    Join Date
    12-18-2008
    Location
    Slovakia
    MS-Off Ver
    Office 2016
    Posts
    162

    Re: compare 2 columns and result in 3th column

    i know,
    it was good, that you moved this thred
    thx

+ 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