Using Offset with Countifs in a scatter chart

Peter Davison

Board Regular
Joined
Jun 4, 2020
Messages
165
Office Version
  1. 365
Platform
  1. Windows
HI All,
I have a scatter graph
The x axis ranging from column KG17 to KG500 (Some of the cells are blank)
The Y axis ranging from column KH17 to KH500 (Some of the cells are blank)
In column KF17 to KF500 I have the numbers 1 to 10 in variable amounts matching the entries in Column KG and KH (e.g. 10 rows may be 1, 20 rows may be 2 etc)

Each of these number 1 to 10 are a series but because they can vary how many rows each number has I wanted to make it dynamic using a named range

I created the formula below for the X and Y axis, but somehow it doesn't like it and I'm not sure what I have done wrong.

=OFFSET(Combined!$KG$17,,,COUNTIFS(Combined!$KG$17:$KG$500,”<>”,Combined!$KF$17:$KF$500,1))
=OFFSET(Combined!$KH$17,,,COUNTIFS(Combined!$KG$17:$KG$500,”<>”,Combined!$KF$17:$KF$500,1))

I know I will then have to create a named range for each of the 1 to 10 Series for both x and y axis once I have the formula correct. (I think I will)?

If anyone can advise me I would really appreciate it.
Regards
 

Some videos you may like

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Watch MrExcel Video

Forum statistics

Threads
1,127,788
Messages
5,626,890
Members
416,208
Latest member
tan21

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top