+ Reply to Thread
Results 1 to 9 of 9

Need formula using 'If' condition & inserting a specific range.

  1. #1
    Forum Contributor
    Join Date
    07-15-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    116

    Need formula using 'If' condition & inserting a specific range.

    Hi,

    Thank you all for all you replies so far. I need yet another resolution.

    I need to input a formula in Cell A6 suggesting

    if cell A1 contains "so & so text" then insert range A15 to B25.

    I request you to please keep following until its resolved.


    EDIT: Now I have attached the file Book1.xlsx with query. Kindly please have a look.


    Thanks
    Last edited by andyzz; 07-25-2014 at 06:19 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Need formula using 'If' condition & inserting a specific range.

    what do you mean by "Insert Range A15 to B25"
    Share your workbook and clearly show what you want to achieve with this formula.

  3. #3
    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,936

    Re: Need formula using 'If' condition & inserting a specific range.

    Not sure what you mean by "insert range A15 to B25"??

    Do you want the contents of every cell in that range to appear in A6?
    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

  4. #4
    Forum Contributor
    Join Date
    07-15-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    116

    Re: Need formula using 'If' condition & inserting a specific range.

    Click 'cell A1', hold shift & then again click 'cell B25'. I'm referring to this selected range.

    I need this range to be inserted starting from cell A6
    Last edited by andyzz; 07-24-2014 at 08:53 PM.

  5. #5
    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,936

    Re: Need formula using 'If' condition & inserting a specific range.

    Ok, and do what with it?

    Sorry, not trying to be dumb, just trying to understand what you are trying to do

  6. #6
    Forum Contributor
    Join Date
    07-15-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    116

    Re: Need formula using 'If' condition & inserting a specific range.

    EDIT: Now I have attached the file Attachment 334804 with query. Kindly please have a look.

  7. #7
    Forum Contributor
    Join Date
    07-15-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    116

    Re: Need formula using 'If' condition & inserting a specific range.

    EDIT: Now I have attached the file Book1.xlsx with query. Kindly please have a look.

  8. #8
    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,936

    Re: Need formula using 'If' condition & inserting a specific range.

    OK how about this, copied down and across...
    =IF($G$1="specific text",D33,"")

  9. #9
    Forum Contributor
    Join Date
    07-15-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    116

    Re: Need formula using 'If' condition & inserting a specific range.

    I'm really sorry if i couldn't make it clear enough. your code is working perfectly fine but by 'specific text' i meant there
    will be as much as 6 options & one will be appear in cell G1.

    For eg G1 cell will have either of 'specific text 1' to 'specific text 6' & different tables are associated with all 6 options.

+ 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] Looping through a range and inserting a formula where condition met
    By strud in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2014, 06:24 AM
  2. [SOLVED] VBA Question- copying specific range if condition is met
    By dnblnd in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-09-2013, 12:03 PM
  3. Copy specific range when a condition is met
    By nikenis in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-04-2012, 02:25 AM
  4. Deleting Specific Range of Cells via Condition
    By Excel Newbie05 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-06-2008, 04:44 AM
  5. Selecting a non-specific range and inserting formula
    By cannon_lab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2007, 01:52 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