+ Reply to Thread
Results 1 to 10 of 10

Migrate row when adding one word

Hybrid View

  1. #1
    Registered User
    Join Date
    02-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Question Migrate row when adding one word

    I am writing and costing recipes, I have a liast of ingredients on one page in excel, these have amounts and cost in the row with them eg; Rice 1 kg 0.23
    I want to type rice in my recipe and the rest of the row migrates automatically, is this possible?
    I am only a basic user, not sure how to put in formulas and things, so if you can help please make it sound as easy as possible. Thank you

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Migrate row when adding one word

    Hi and welcome to the forum

    Yes, of course it's possible. Probably with a VLOOKUP() formula.
    If you need more specific help you'll need to upload your workbook along with some notes that explain which cells are your basic data, and which are your results cells. Manually add some example results so that we can understand exactly what you want.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    02-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Talking Re: Migrate row when adding one word

    Book2.xlsx
    Here is an attachment of what I would like to do.
    I woul like to be able to type the uingredient and the Measure Nad Price will come with it. I would like to be able to this on many tabe for different dishes.
    Thank you for your help.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Migrate row when adding one word

    Hi,

    See attached
    Attached Files Attached Files

  5. #5
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Migrate row when adding one word

    =iferror(vlookup(a5,'bread products'!$b$4:$d$36,3,0),0)
    Book2(1).xlsx
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  6. #6
    Registered User
    Join Date
    02-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Migrate row when adding one word

    That looks spot on, thank you, is it possible to bring over the Measure aswell? Thank you

  7. #7
    Registered User
    Join Date
    02-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Migrate row when adding one word

    Now that is fantastic, if I keep adding ingredients to list will this still work or will it need to be formulated again?

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Migrate row when adding one word

    @Headchefski

    No, you can freely add and delete ingredients/products as you wish. The range of cells that covers the list has been given what's known as a dynamic range name (Products), so you'll always see whatever has been entered on the products sheet.

  9. #9
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Migrate row when adding one word

    It does need to be formaulated as it covers whole columns in Bread PRoducts tab

    What does your formula in C2 supposed to do?
    Currently you have got an error?


    Richard,
    What does this part do:
    ROW('BREAD PRODUCTS'!$B$3)

    Never seen this before.

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Migrate row when adding one word

    @Robert

    That Row() formula simply returns the row number for B3 in the Bread Products sheet. I tend to use something like that rather than hard coding the value 3 in this case, just in case the user adds additional rows above the table.

    I think it's a moot point whether when using INDEX it's better to index just the table in question or the whole range of used cells starting at A1. Must admit that I generally (although not here) tend to use the latter method and similarly in the MATCH element, match on the whole column so that there's no need to worry about the index table being positioned differently.

    However since I'd defined the products range for a drop down and didn't want spaces or column labels in the drop down I stayed with the indexing table method and adjustment for the top row of the table rather than just indexing A1:B37

+ 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 migrate from an Excel file to another
    By nacersaleh in forum Excel General
    Replies: 1
    Last Post: 07-15-2013, 10:22 AM
  2. Adding Brackets Around A Word Based On Word In Another Column
    By jessekanclerz in forum Excel General
    Replies: 1
    Last Post: 11-29-2010, 10:45 PM
  3. how to migrate to new laptop
    By avveerkar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2006, 02:36 PM
  4. [SOLVED] Help me migrate
    By LabElf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2005, 11:05 PM
  5. Migrate Macro's
    By nkwhftw in forum Excel General
    Replies: 0
    Last Post: 02-11-2005, 09:37 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