Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8813923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:58:55+00:00 2026-06-14T03:58:55+00:00

I have found ways to solve this issue but I don’t know how to

  • 0

I have found ways to solve this issue but I don’t know how to tailor them to my specific problem. I’ve never written a marco or any VBA script before, so please be specific with your answers.

I have an Excel workbook with one worksheet named “foods”, and four other worksheets named “snack choices”, “breakfast choices”, “lunch choices”, and “dinner choices”

The heading in the “foods” worksheet looks like this:

Food Amount Calories … ETC … Type

Where “Type” contains “breakfast” “snack” “lunch” “dinner” or a combination of 2+ choices.

I’d like the entire row to copy to the corresponding “snack choices”, “breakfast choices”, “lunch choices”, and “dinner choices” worksheet according to the value of the “Type” field in the “foods” worksheet.

For example, if I enter a new row into the “foods” worksheet with the “Type” field as “snack / breakfast” I’d like for the row to automatically appear in the “breakfast choices” and “snack choices” worksheets. (I could remove the slash or replace it with another character if that makes it easier)

Thank you in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:58:57+00:00Added an answer on June 14, 2026 at 3:58 am

    Main table with foods (Sheet ‘Foods’):

    Main table with foods (Sheet 'Foods')

    Table for breakfasts:

    Table for breakfasts

    In this table:

    A1: Type of food. In order to match combinations with other foods (Lunch/Cereal/Breakfast), it should start and end with ‘*’: *breakfast* instead of breakfast. It’s possible also to make a change in formulae.

    Then we look for the first occasion of “breakfast” on the sheet ‘Foods’:

    A3:

    =IF(ISERROR(MATCH($A$1,Foods!A:A;0)),"",MATCH($A$1,Foods!A:A,0))
    

    As a result, a number of the matching row will be shown. If no match, a blank cell will be shown.

    Then we match other data:

    B2:

    =IF(A3="","",INDIRECT("Foods!B"&$A3))
    

    D2: change INDIRECT(“Foods!B”&$A3)) to INDIRECT(“Foods!D”&$A3)), E for E2 etc.

    Other rows in column A below the first one (copied downwards from A4):

    =IF(ISERROR(A3+MATCH($A$1,INDIRECT("Foods!A"&A3+1&":A60000"),0)),"",A3+MATCH($A$1,INDIRECT("Foods!A"&A3+1&":A60000"),0))
    

    If no match, a blank cell will be shown.

    I uploaded a spreadsheet example to http://www.bumpclub.ee/~jyri_r/Excel/Type_of_food_on_another_sheet.xls

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried many different ways to solve this that I have found online
i have found some ways but they are actually reading frames and applying transition
I have found already some similar discussion on this, but would like to investigate
(By now, this problem is purely theoretical, since we have found a way to
I have found two ways to extract matches in Python: 1. def extract_matches(regexp, text):
I have found that I have no problem using require to load something like
I have found many great answers to this from a year ago (when it
I have found this link: http://www.jfree.org/forum/viewtopic.php?f=3&t=6314 Its back in 2007 where they agree that
I have found some jQuery codes for show content with slide effect, but none
I have a problem asked to me in an interview, this is a similar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.