+ Reply to Thread
Results 1 to 2 of 2

Formula for putting descriptive text in certain cells conditionally

  1. #1
    Registered User
    Join Date
    09-30-2011
    Location
    Lithuania
    MS-Off Ver
    Excel 2010
    Posts
    81

    Formula for putting descriptive text in certain cells conditionally

    I have attached a spreadsheet with descriptive text entries in some of the columns, and I am wondering if there is a formula I can use to get certain text entries to appear in certain cells on a different sheet, based on a few conditions.

    On the sheet, there are rows of alternating text and numbers. There is a name associated with every row, and there are three rows of data for each name.

    I'm hoping to have a formula e.g. the values in column G on Sheet2 for any row which begins with name "Jimmy"... in cell B5, B8, and B11 on Sheet1. The name "Jimmy" appears in cell B2, so whatever name appears there is the name to which the text entries should correlate. In other words, if we change the index value to "Sam", the text entries for Sam should appear.

    Is this possible with formulas, or should I be trying to do this with VBA?

    Thank you, for any help anyone can offer!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula for putting descriptive text in certain cells conditionally

    On Sheet2, put this indexing formula in T1 and copy down:
    =IF(Sheet1!$B$2 = $A1, ROW(), "")


    On Sheet1:
    B5: =INDEX(Sheet2!G:G, MATCH(SMALL(Sheet2!T:T, 1), Sheet2!T:T, 0))
    B8: =INDEX(Sheet2!G:G, MATCH(SMALL(Sheet2!T:T, 2), Sheet2!T:T, 0))
    B11: =INDEX(Sheet2!G:G, MATCH(SMALL(Sheet2!T:T, 3), Sheet2!T:T, 0))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. How to conditionally format cells using partial text
    By Cremorneguy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-26-2014, 11:26 AM
  2. putting cell text into another cells furmula
    By ratdogexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2013, 04:16 AM
  3. [SOLVED] Insert descriptive text in another row when specific number is entered
    By nesbensen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-03-2012, 02:53 PM
  4. conditionally combining text value of multiple cells
    By n.niks in forum Excel General
    Replies: 2
    Last Post: 06-09-2012, 06:56 AM
  5. Putting text at the end of formula results
    By stephens in forum Excel General
    Replies: 8
    Last Post: 01-08-2010, 04:07 PM
  6. conditionally seceting row and putting it another row
    By mutu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-10-2007, 12:10 AM
  7. descriptive statistics - text in survey
    By allen367 in forum Excel General
    Replies: 1
    Last Post: 01-17-2006, 01:30 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