+ Reply to Thread
Results 1 to 10 of 10

Formula where result on Sheet 2 is generated from data on sheet 1

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Formula where result on Sheet 2 is generated from data on sheet 1

    I have a spreadsheet comprising two “sheets”. Sheet 1: Column A has a name, column B a number [1, 2 or 3][ The names and numbers remain the same in their respective Rows] and column C is either blank or has a number 1,12,13 or 16.
    In sheet 2: Column A and B have identical information to sheet 1. For column C. I am looking for a formula that, if column C on Sheet 1 contains a number will insert the number shown in column B of the same row on Sheet 1. If Column C in Sheet 1 contains no number Column C in sheet 2 will be blank. Column C represents a week in the year and at the year end the spreadsheet will contain 54 columns.
    Eg. Sheet 1: Column A; Column B; Column C;.
    Row 1 A Brown 3 16
    Row 2 G Green 2
    Row 3 D Fellows 1 12

    Sheet 2: Column A; Column B; Column C;
    Row 1 A Brown 3 3
    Row 2 G Green 2 BLANK
    Row 3 D Fellows 1 1

    Is anyone able to provide me with a formula that would achieve the above?
    Your help would be appreciated.
    Last edited by Playgolf; 03-10-2018 at 05:58 AM.

  2. #2
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Formula Required

    maybe something like this?

    on sheet 2 column C

    =IFERROR(IF(INDEX(Sheet1!C:C,MATCH(1,INDEX((Sheet1!A:A=Sheet2!A1)*(Sheet1!B:B=Sheet2!B1),),0))<>"",INDEX(Sheet1!B:B,MATCH(1,INDEX((Sheet1!A:A=Sheet2!A1)*(Sheet1!B:B=Sheet2!B1),),0)),"BLANK"),"")

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,960

    Re: Formula Required

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    05-29-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Formula where result on Sheet 2 is generated from data on sheet 1

    A big thank you to finalazy for responding with a formula. Your help is very much appreciated.

    Regards

  5. #5
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Formula where result on Sheet 2 is generated from data on sheet 1

    You are welcome. Hope it helps

  6. #6
    Registered User
    Join Date
    05-29-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Formula where result on Sheet 2 is generated from data on sheet 1

    Could I ask a supplementary question on the formula kindly provided by finalazy. The formula works fine when looking at data in Sheet 1 Column C but when the data is in Column D Column D in sheet 2 only picks up the number 1 [ ie it seems to ignore players in Divs 2 and 3. In Sheet 2 I simply dragged the formula from column C to column D and then dragged the formula down all appropriate rows. Is this the correct way to copy the formula across columns or do I need to adopt a different way?

  7. #7
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Formula where result on Sheet 2 is generated from data on sheet 1

    Try this again.
    Paste on sheet 2 column c then drag.

    =IFERROR(IF(INDEX(Sheet1!C:C,MATCH(1,INDEX((Sheet1!$A:$A=Sheet2!$A1)*(Sheet1!$B:$B=Sheet2!$B1),),0))<>"",INDEX(Sheet1!$B:$B,MATCH(1,INDEX((Sheet1!$A:$A=Sheet2!$A1)*(Sheet1!$B:$B=Sheet2!$B1),),0)),"BLANK"),"")

  8. #8
    Registered User
    Join Date
    05-29-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Formula where result on Sheet 2 is generated from data on sheet 1

    finalazy, Once again many thanks.

  9. #9
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Formula where result on Sheet 2 is generated from data on sheet 1

    Welcome =)

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,989

    Re: Formula where result on Sheet 2 is generated from data on sheet 1

    Isn't this basically the same thing that you are asking about in the thread "Merging two current spreadsheets"?
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 8
    Last Post: 06-06-2018, 09:20 AM
  2. [SOLVED] Formula help required
    By Citrix1966 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-14-2017, 02:14 PM
  3. Replies: 3
    Last Post: 01-24-2017, 08:08 AM
  4. Replies: 6
    Last Post: 01-17-2016, 09:44 AM
  5. Multiple Vlookup Normal Formula (not array formula) or VBA Function Required
    By BoopathiK in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2015, 03:06 AM
  6. [SOLVED] Simple Conditional Formating Help Required - If Blank then Red Bold text required
    By thilag in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-19-2014, 12:23 PM
  7. Formula required to hide results from another cell formula
    By 917 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2013, 12:12 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