+ Reply to Thread
Results 1 to 6 of 6

Look for text in column C to Z and place the single instance in B

  1. #1
    Registered User
    Join Date
    10-30-2017
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    7

    Look for text in column C to Z and place the single instance in B

    I have a sheet with a 26 columns. Column A is the name of a street. Columns C to Z are all empty, except for one, which contains the house number. The column with the house number could be in any one of the columns. So, my question is this: How can I get Excel to look at the values of C1 to Z1, and when it find the single cell with the value, place that value in B1 and stop looking?
    Attached Files Attached Files
    Last edited by ThumperStrauss; 02-15-2021 at 10:29 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Look for text in column C to Z and place the single instance in B

    Please read the yellow banner at the top of this page on how to attach a file.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: Look for text in column C to Z and place the single instance in B

    Try the MAX function...

    =MAX(C1:Z1)

  4. #4
    Registered User
    Join Date
    10-30-2017
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Look for text in column C to Z and place the single instance in B

    Thank you! It works.

  5. #5
    Registered User
    Join Date
    10-30-2017
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Look for text in column C to Z and place the single instance in B

    Update: While the =MAX() works for simple numbers, it doesn't for numbers with apartment numbers preceding the house numbers. So if 123 Wilson Street, Apt. 1101 is listed as 1101-123, then the =MAX() yields a zero for that item. Is there another possible solution?

  6. #6
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: Look for text in column C to Z and place the single instance in B

    Give this formula a try...

    =LOOKUP(2,1/(C1:Z1<>""),C1:Z1)

+ 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. Single instance of column item in Pivot table
    By Audrey1 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-05-2016, 09:33 AM
  2. [SOLVED] Return Single Instance of Numeric Values from a Column
    By Rowan in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-06-2005, 07:05 PM
  3. Return Single Instance of Numeric Values from a Column
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] Return Single Instance of Numeric Values from a Column
    By Rowan in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 09:05 AM
  5. [SOLVED] Return Single Instance of Numeric Values from a Column
    By Rowan in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-06-2005, 05:05 AM
  6. [SOLVED] Return Single Instance of Numeric Values from a Column
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  7. [SOLVED] Return Single Instance of Numeric Values from a Column
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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