+ Reply to Thread
Results 1 to 7 of 7

If Cell contains text, return that text and then perform another if and statement?

  1. #1
    Registered User
    Join Date
    02-13-2010
    Location
    los angeles, ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    If Cell contains text, return that text and then perform another if and statement?

    How can I achieve the following:

    If Cell B2 contains text, display that text in cell A14 AND then do the following:

    If any of the cells in the range A2 to A11 contain "Victor", and there is a number in the cell in the next column to the right (column B), then return that number into A15

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: If Cell contains text, return that text and then perform another if and statement?

    In A14:
    =IF(Istext(B2),B2,"")

    In A15:
    =IFERROR(VLOOKUP("Victor",A2:B11,2,FALSE),"")
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Registered User
    Join Date
    02-13-2010
    Location
    los angeles, ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: If Cell contains text, return that text and then perform another if and statement?

    This is working much better! Thank you.

    I'm getting closer to what I'm trying to achieve!

    What I have is a weekly tracker that shows, weekly data, broken down by customer and what contractor served them, but the names can change, so I have a validation drop down list of names to choose from. How can I make it so excel will populate the customer name and amounts to pay each contractor when I put data? on the days they work?

    I attached this workbook that has an example of what the data should look like, but there are no formulas. Book1.xlsx
    The color data on the right will fill an entire workbook for a week of work up to 6 people. I'm hoping it's possible to fill this data in and have excel generate the totals for each contractor individually. Is this possible?
    Attached Files Attached Files
    Last edited by gachogavacho; 08-28-2013 at 05:10 PM. Reason: more info

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: If Cell contains text, return that text and then perform another if and statement?

    Because there are no formulas, its hard to make out where the values come from - and why. Could you show (maybe with arrows - and some text) how you arrive at the answers you have?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    02-13-2010
    Location
    los angeles, ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: If Cell contains text, return that text and then perform another if and statement?

    The problem is, for me, If I enter a customer name, I only want the data for each contractor to enter if their name exists in the first column and there is an amount for them in the column on the right.

  6. #6
    Registered User
    Join Date
    02-13-2010
    Location
    los angeles, ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: If Cell contains text, return that text and then perform another if and statement?

    Quote Originally Posted by FDibbins View Post
    Because there are no formulas, its hard to make out where the values come from - and why. Could you show (maybe with arrows - and some text) how you arrive at the answers you have?
    Thank you for your answer! I didn't enter any formulas into this sheet to simplify getting to the end result I am re-uploading with arrows and text to show the process of what data is entered and what should happen as it is entered to better understand what formulas to use. Let me know what other info I can give if you need it. I envy you guys for knowing this stuff!
    Book1.xlsx

  7. #7
    Registered User
    Join Date
    02-13-2010
    Location
    los angeles, ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: If Cell contains text, return that text and then perform another if and statement?

    I hope i'm asking the right questions?

+ 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. If cell contains certain text and certain text then return predefined text
    By fuzzhead in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-25-2014, 02:18 PM
  2. [SOLVED] If Or statement to check cell text and delete entire row if text is found
    By VBA FTW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-08-2013, 11:46 AM
  3. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  4. If cell contains text1, text2 or text 3 return this text, otherwise return X
    By bukmanodrama in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2013, 09:24 AM
  5. Can a cell contain text and perform calculation?
    By drewship in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-18-2009, 02:43 PM

Tags for this Thread

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