Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Updating worksheet data into another worksheet

Posted on 2016-11-09
Medium Priority
52 Views
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
Question by:Shailesh Shinde
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• Learn & ask questions
• 4
• 2

LVL 33

Expert Comment

ID: 41881831
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 33

Expert Comment

ID: 41881835
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 33

Accepted Solution

Rob Henson earned 2000 total points
ID: 41881847
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

LVL 3

Author Closing Comment

ID: 41881855
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 33

Expert Comment

ID: 41881859
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

ID: 41881912
Thanks for the updated file with highlighted options.

Thanks,
Shail
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
###### Suggested Courses
Course of the Month5 days, 13 hours left to enroll

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

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