Link to home
Start Free TrialLog in
Avatar of NjamesRRS
NjamesRRS

asked on

Calculate values in another worksheet in excel

I have an excel worksheet that has the following data setup (sample)

User generated image
An another worksheet I have the unique values of the b column(site Name)

I want to put in columns across the top of the second work sheet the values from the corresponding week

i.e.
Site1 | week 1| week2 | Week 3   etc. ( The columns are simply numbered 1|2|3 the text week is not there)

basically the value of D where columns b on the other sheet = column a on the summary sheet and the week value on the first sheet equals the column value (or week number) on the summary sheet

Not sure how to go about this. User generated image
Avatar of Saurabh Singh Teotia
Saurabh Singh Teotia
Flag of India image

I'm not sure how does your sheet2 data looks like where you are trying to get this data..Can you post your sample file with how does the sheet2 looks like as it becomes easier then to write a formula of what you are looking for..

Saurabh...
Avatar of NjamesRRS
NjamesRRS

ASKER

This is a screen shot of ssecond summary sheet
Screen-Shot-2015-09-25-at-10.00.24-A.png
Something like this?
The formula in B2 of Summary Sheet is copied across and down.
Adjust the range in the formula to match it with your original Data sheet.
NjamesRRS.xlsx
You can do something like this...

=SUMPRODUCT((Data!$B$2:$B$13=$A2)*(Data!$C$2:$C$13=B$1)*(Data!$D$2:$D$13))

Open in new window


Saurabh...
Example.xlsx
Saurabh..

Can you break down whats happening in each section?

((Data!$B$2:$B$13=$A2)*(Data!$C$2:$C$13=B$1)*(Data!$D$2:$D$13))

Why is there multiplication?
Attached is the actual file if it helps.
2013.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Saurabh Singh Teotia
Saurabh Singh Teotia
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial