Solved

Updating worksheet data into another worksheet

Posted on 2016-11-09
6
23 Views
Last Modified: 2016-11-10
Hi All,

I have an requirement to update the data from worksheet2 into worksheet1 for specific name, date from and to in Name, From To columns selected by user in worksheet2 and highlight in date range. Please find attached sample file for this.

Thanks & Best Regards,
Shail
RMT.xlsx
0
Comment
Question by:Shailesh Shinde
  • 4
  • 2
6 Comments
 
LVL 31

Expert Comment

by:Rob Henson
Comment Utility
Do you want the cells just highlighted or do you want a value populated in the fields in the relevant days?

If just a value, what value? The following will put "X" where relevant:

=IF(AND(VLOOKUP($C4,Sheet2!$I:$K,2,FALSE)<=E$3,VLOOKUP($C4,Sheet2!$I:$K,3,FALSE)>=E$3),"X","")

If you just need highlighting then you can use this formula in conditional formatting:

=AND(VLOOKUP($C4,Sheet2!$I:$K,2,FALSE)<=E$3,VLOOKUP($C4,Sheet2!$I:$K,3,FALSE)>=E$3)

Thanks
Rob H
0
 
LVL 31

Expert Comment

by:Rob Henson
Comment Utility
Hold fire, doesn't work with Resource 2 because of multiple lines. I will take another look.

With another look, Resource 2 is being allocated to two jobs, Job 2 from 14 to 16 Nov and Job 3 from 11 to 16 Nov; is this a clash of Resource allocation? Would this happen in reality or is it just sample data.

I assume however, if Resource 2 were then reallocated to lets say 18 to 23 Nov for Job 3 you would expect the chart to update to the relevant days.
0
 
LVL 31

Accepted Solution

by:
Rob Henson earned 500 total points
Comment Utility
Updated formula, start in E4 and then drag right and down:

=COUNTIFS(Sheet2!$I:$I,$C4,Sheet2!$J:$J,"<="&E$3,Sheet2!$K:$K,">="&E$3)

This will put the count of occurrences that match the dates. You can then use different conditional formatting to highlight where you have overlapping allocations.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 3

Author Closing Comment

by:Shailesh Shinde
Comment Utility
Hi Rob H,
Basically needs to be highlighted.
However, the count of occurrences will be an very good idea which further can be done with highlighter.
""=COUNTIFS(Sheet2!$I:$I,$C4,Sheet2!$J:$J,"<="&E$3,Sheet2!$K:$K,">="&E$3)""

Thanks,
Shail
0
 
LVL 31

Expert Comment

by:Rob Henson
Comment Utility
Glad to help, see your file uploaded below with conditional formatting applied; green highlight shows 1 allocation, red highlight shows more than 1 allocation.

The formula can be deleted from the cells if so required.
RMT.xlsx
0
 
LVL 3

Author Comment

by:Shailesh Shinde
Comment Utility
Thanks for the updated file with highlighted options.

Thanks,
Shail
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now