+ Reply to Thread
Results 1 to 5 of 5

Comparing cells in excel

  1. #1
    Registered User
    Join Date
    02-01-2016
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Comparing cells in excel

    If I have two cells one with a number and the second cell with no value (blank). How can I create a formula that would look up both of these two cells and return the value of the first cell?

    Many thanks

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Comparing cells in excel

    =if( AND(isnumber(A1),B1="") , A1, "")

    assuming that A1 and B1 are
    If I have two cells one with a number and the second cell with no value (blank).
    the cells in question
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    02-01-2016
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5
    Quote Originally Posted by etaf View Post
    =if( AND(isnumber(A1),B1="") , A1, "")

    assuming that A1 and B1 are

    the cells in question
    Thank you for your reply.
    But I don't think this is working. The cells are named so the formula is returning the name instead of the value in the cell. Also it's not returning the one with the value. Can you help?

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Comparing cells in excel

    Quote Originally Posted by thatgirl84 View Post
    Thank you for your reply.
    But I don't think this is working. The cells are named so the formula is returning the name instead of the value in the cell. Also it's not returning the one with the value. Can you help?
    What is the actual need of yours can you please clear it once??? if you want numeric numbers then simply put with ="cell reference".

    It will be good if you can upload a sample workbook with desired result.

    Go to advance and click on attachment link and attach the sample.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Registered User
    Join Date
    02-01-2016
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Comparing cells in excel

    Quote Originally Posted by shukla.ankur281190 View Post
    What is the actual need of yours can you please clear it once??? if you want numeric numbers then simply put with ="cell reference".

    It will be good if you can upload a sample workbook with desired result.

    Go to advance and click on attachment link and attach the sample.
    Thats fine, its working for me now. Thank you.

+ 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. Comparing cells on two sheets and listing not found cells
    By San75 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2016, 09:48 PM
  2. [SOLVED] Comparing three cells
    By Aetris in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-22-2015, 10:45 AM
  3. Replies: 1
    Last Post: 11-12-2014, 10:57 AM
  4. comparing cells that are non contiguous and seperated by blank cells
    By mz8l18 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2013, 02:36 AM
  5. Replies: 1
    Last Post: 11-15-2010, 12:24 PM
  6. Comparing 2 Cells in Excel
    By mvel_sky in forum Excel General
    Replies: 1
    Last Post: 05-07-2009, 06:10 PM
  7. Comparing cells in an Excel column using VBA
    By Thisyearsman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-11-2007, 10:02 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