Forum Discussion

Ragnar_Raghu's avatar
Ragnar_Raghu
New Member
6 years ago

Sumif between two tables

Hi All,

 

I have two Tables

 

Table 1 has hourly price of electricity for each day

 

Date               hour-block   Price

01/04/2017     0 to 1            200

01/04/2017     1 to 2            400

02/04/2017    0 to 1             500

02/04/2017    1 to 2             100

02/04/2017    2 to 3             900

03/04/2017    0 to 1             152

03/04/2017    1 to 2             152

03/04/2017    2 to 3             152

04/04/2017    0 to 1             168

04/04/2017    1 to 2             789

04/04/2017    2 to 3             852

 

Table 2 has units of electrictity traded hourly each day

Date               hour-block   units traded

01/04/2017     0 to 1            200

01/04/2017     1 to 2            400

02/04/2017    0 to 1             500

02/04/2017    1 to 2             100

02/04/2017    2 to 3             900

03/04/2017    0 to 1             152

03/04/2017    1 to 2             152

03/04/2017    2 to 3             152

04/04/2017    0 to 1             168

04/04/2017    1 to 2             789

04/04/2017    2 to 3             852

 

I need to plot a graph which shows that price and units traded like below

Price Range     Units traded

below 100        0

100- 200          298

201 to 300      456

301 to 400      963 and so on

 

request your help

Regards

 

 

8 Replies

  • Hi,

    How did you get the results of 298, 456 etc.?  Show the calculation - be very clear.

    • baronraghu's avatar
      baronraghu
      Helper III

      Hi Ashish,

       

      Thanks for your prompt response. I appologize for the inconvinece , The sum in the summary table has beeen incorrect. I have updated the summary table as below

       

      Price Range    Units traded

       below 100       100

      101 to 200      824

      201 to 300       0

      301 to 400       400

      401 to 500      500

      above 501      2541