+ Reply to Thread
Results 1 to 3 of 3

If this number has been found in a list than copy its text and value there

  1. #1
    Registered User
    Join Date
    07-30-2015
    Location
    Caribbean
    MS-Off Ver
    2010
    Posts
    1

    If this number has been found in a list than copy its text and value there

    I have remarkable question. Imagine this: I wrote the numbers 1 to 25 below each other in column A. In Column B I wrote a text and in column C I wrote their values in numbers (each number in column A has a different text and value next to it).
    Now I want to have a formula that does the following ex: if I write number '4' in row E it will automatically look up for number '4' in column A, paste the text and value of number 4 in column F and E (the text in F and the values in E).

    In other words If I write '4' in column E, It want to search in whole column A the number '4', give me the text that belongs to 4 in column B in column F and the value of column C in column G.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,613

    Re: If this number has been found in a list than copy its text and value there

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



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: If this number has been found in a list than copy its text and value there

    Another way if you want to do it in one formula do this in F1 and fill across.

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    1
    Pears
    0.59
    4
    4
    Apples
    0.48
    F1 : =VLOOKUP($E1,$A$1:$C$25,COLUMNS($A:A),FALSE)
    2
    2
    Bananas
    0.61
    3
    3
    Oranges
    0.55
    4
    4
    Apples
    0.48
    5
    5
    Kiwi
    1
    6
    6
    Plums
    0.56
    7
    7
    Lemons
    0.47
    8
    8
    Limes
    0.58
    9
    9
    Chicken
    2.01
    10
    10
    Steak
    7.99
    11
    11
    Hamburger
    4.51
    12
    12
    Peanut Butter
    5
    13
    13
    Milk
    4.79
    14
    14
    Bread
    4.7
    15
    15
    Soda
    7
    16
    16
    Ice Cream
    4
    17
    17
    Butter
    3
    18
    18
    Noodles
    0.59
    19
    19
    Soup
    15
    20
    20
    Chips
    4
    21
    21
    Coffee
    8.99
    22
    22
    Fish
    6.5
    23
    23
    Potatoes
    2.89
    24
    24
    Beans
    15
    25
    25
    Tomatoes
    0.15
    Dave

+ 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. [SOLVED] Search for the text in cell A1 in a list and remove the text if found in the list
    By kak0 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-24-2014, 11:01 PM
  2. [SOLVED] Return Column Number when specific text is found
    By Simon.xlsx in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-29-2014, 12:20 PM
  3. How to sum if number but stop if text is found?
    By Hnewb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2013, 07:31 PM
  4. Replies: 12
    Last Post: 07-30-2013, 11:52 AM
  5. [SOLVED] If specific text is found in cell, then return a number
    By csch123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-31-2013, 05:07 PM
  6. Replies: 1
    Last Post: 11-05-2012, 09:23 PM
  7. If text found in list then complete action
    By CJ944 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2010, 08:38 AM

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