+ Reply to Thread
Results 1 to 6 of 6

Using IF/ VLook/ INDEX to return value?

  1. #1
    Registered User
    Join Date
    10-02-2014
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    23

    Using IF/ VLook/ INDEX to return value?

    Hi there,

    I have 4 columns (B to E) and the cells at each column may contain "P". If there is a "P" appears in one of the columns, I would like to return "P" on Column F.

    I wonder which function (IF, VLOOK, INDEX) applies? and how to write it?

    Regards.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,413

    Re: Using IF/ VLook/ INDEX to return value?

    Put this in F2:

    =IF(COUNTIF(B2:E2,"P")>0,"P","")

    and copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Using IF/ VLook/ INDEX to return value?

    Try this...

    In F2
    Please Login or Register  to view this content.
    and copy down.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    10-02-2014
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    23

    Re: Using IF/ VLook/ INDEX to return value?

    Pete & Sktneer, it works! Thanks!!!!

    *Reputation is added*

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,413

    Re: Using IF/ VLook/ INDEX to return value?

    You're welcome, Wes, thanks for the rep.

    I went to UoB in the 70's - very fine place !!

    Pete

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Using IF/ VLook/ INDEX to return value?

    You're welcome. Glad we could help.
    And thanks for the feedback as well.

+ 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. vlook or index match
    By mma3824 in forum Excel General
    Replies: 1
    Last Post: 05-30-2014, 08:28 AM
  2. [SOLVED] How can I use VLook UP or Index to fill in data from another sheet?
    By matt323 in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 12-29-2013, 11:38 PM
  3. Multi or two way vlook up and index match tutorial
    By SIEMON7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-29-2013, 10:25 PM
  4. VLOOK to return an image
    By Backroomgeeza in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2013, 07:19 AM
  5. vlook up return more than one match
    By dphair1979 in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 08-28-2007, 10:46 AM
  6. vlook/match/index
    By nowfal in forum Excel General
    Replies: 12
    Last Post: 08-30-2005, 04:05 PM
  7. Vlook up or index match
    By jerry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2005, 01:06 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