+ Reply to Thread
Results 1 to 12 of 12

If cell contains then get beside cell

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    If cell contains then get beside cell

    Hello,

    I don't know if formula or macro could help me but here is my question.

    as per the attachment, I would like to get the amount when the cell beside contain a specific word.

    I explain everything in the attachment.

    Please get back to me if you need clarificartion. Many thanks,
    Graig
    Attached Files Attached Files
    Last edited by graiggoriz; 10-13-2014 at 06:56 AM.

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

    Re: If cell contains then get beside cell

    I think you forgot to explain your requirement in the attachment. Please upload the correct file with an explanation so that members can understand your requirement clearly.
    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.

  3. #3
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Re: If cell contains then get beside cell

    Quote Originally Posted by graiggoriz View Post
    Hello,

    I don't know if formula or macro could help me but here is my question.

    as per the attachment, I would like to get the amount when the cell beside contain a specific word.

    I explain everything in the attachment.

    Please get back to me if you need clarificartion. Many thanks,
    Graig
    looks like you haven't attached the correct file.
    If I've been of help, plz add reputation.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If cell contains then get beside cell

    Are you sure that you uploaded the correct file?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: If cell contains then get beside cell


    Hi,

    better is a crystal clear explanation in a post for those who can't (or don't want for security reason) open any attachment …

  6. #6
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: If cell contains then get beside cell

    Hi All,

    I apology about that! I have replace the attachment.To provide further information, I will have in column where it regards the description of a article I bought. I need from that description to get the cell beside the description one to get the price.

    In fact I manage to highlight all cell which contains the work I am interested in by selecting the column and CTRL+F but I would need the other column with the price.

    I hope it is kind of clearer...

    Thanks and sorry again.
    Graig

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If cell contains then get beside cell

    Your comment in D2 is:

    ..'IF(B2=CONTAINS MOLO* THEN D2;IF NOT NOTHING)
    Do you mean?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: If cell contains then get beside cell

    Fortis Many thanks. This is exactly what I needed :-D

    For the other cell, about having the entire word equal to "MOLOKZ" should I use the same formula?

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If cell contains then get beside cell

    Try this.

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

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

    Re: If cell contains then get beside cell

    I think the above formula will work perfectly if the column B2 contains a single word "MOLOKZ" but if the B2 contains a string as shown in the sample file, that wouldn't return anything as per the criteria specified. If this is the case, you may try this.....

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: If cell contains then get beside cell

    Thanks you all!

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

    Re: If cell contains then get beside cell

    you're welcome. Thanks for the feedback.

+ 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] When one cell equals value of another cell, then third cell displays text of fourth cell?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2021, 02:12 PM
  2. If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do this.
    By tristanhathaway in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2014, 08:05 PM
  3. [SOLVED] How to create/run "cell A equals Cell B put Cell C info in Cell D
    By abmb161 in forum Excel General
    Replies: 7
    Last Post: 02-05-2014, 02:20 AM
  4. Replies: 1
    Last Post: 11-06-2013, 02:56 AM
  5. Replies: 1
    Last Post: 11-03-2012, 09: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