+ Reply to Thread
Results 1 to 6 of 6

Fix template based on raw data sheet current and previous day

  1. #1
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Fix template based on raw data sheet current and previous day

    Hi Experts!
    I have a sheet named Template and Rawdata.
    There are two tables in Template sheet one based on previous date data and one belongs to current date data. requirements to fill the template sheet based three criteria matched from raw data sheet.
    1. Template sheet column F5 to column P5. with Rawdata sheet Column B
    2. Template sheet column F6 to column P6. with Rawdata sheet Column C
    3. Template sheet column G4. with Rawdata sheet Column A
    4. Then fill the data to Template sheet column F7 to column P7. with Rawdata sheet Column D ( For previous date data suppose in the template sheet the date is 10-Apr-2020 so fix the data for 9-Apr-2020 in the first table and in the second table data for current date which is 10-Apr-2020.

    The template sample is attached.
    Attached Files Attached Files
    Last edited by farrukh; 04-28-2020 at 02:30 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Fix template based on raw data sheet current and previous day

    Please try at
    F5
    =LOOKUP(1,1/(Rawdata!$A$2:$A$23=$G4)/(Rawdata!$B$2:$B$23=F5),Rawdata!$C$2:$C$23)
    F6
    =LOOKUP(1,1/(Rawdata!$A$2:$A$23=$G4)/(Rawdata!$B$2:$B$23=F5),Rawdata!$D$2:$D$23)
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Re: Fix template based on raw data sheet current and previous day

    Sir Bo_Ry,
    Thanks it works based on two criteria date and name.
    Also required to work on third criteria which is sample column. Means all 3 criteria matches then the condition gets true and bring data from columnD Rawdata sheet.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Fix template based on raw data sheet current and previous day

    To add the third criteria, sample, please modify Bo_Ry's formulas for the Data rows as follows:
    For row 7: =LOOKUP(1,1/(Rawdata!$A$2:$A$23=$G4)/(Rawdata!$B$2:$B$23=F5)/(Rawdata!$C$2:$C$23=F6),Rawdata!$D$2:$D$23)
    For row 14: =LOOKUP(1,1/(Rawdata!$A$2:$A$23=$G11)/(Rawdata!$B$2:$B$23=F12)/(Rawdata!$C$2:$C$23=F13),Rawdata!$D$2:$D$23)
    Note that the formulas are array entered so after pasting them into their respective cells in column F press and hold the Ctrl and Shift keys while pressing the Enter key. Activate the formulas before copying them over to column P.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Re: Fix template based on raw data sheet current and previous day

    JeteMc perfect thank you and Boy_Ry !

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Fix template based on raw data sheet current and previous day

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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: 03-27-2020, 11:39 AM
  2. [SOLVED] Finding the most current and previous current date based on multiple criteria
    By tkbuc in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-27-2016, 06:06 PM
  3. SUM IF FORMULA BASED ON CURRENT/PREVIOUS/NEXT Month
    By AK123 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-21-2016, 01:10 PM
  4. Creating a worksheet based on a previous template
    By troyaneitor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2015, 03:43 AM
  5. Replies: 3
    Last Post: 04-17-2014, 12:21 PM
  6. [SOLVED] Reference of Previous sheet in current sheet cell.
    By ranjeet.bhagat57 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-25-2012, 11:37 AM
  7. Replies: 4
    Last Post: 03-21-2011, 05:37 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