How to return a whole column based on conditions

marc01

Board Regular
Joined
Sep 17, 2018
Messages
50
Office Version
  1. 2016
Platform
  1. Windows
Hi all.

Hoping someone can help.

Looking to return multiple results based on an if condition. I have a column of xy coordinates and I am looking to return certain coordinates depending on the content of other cells in other columns within the table.

Any help would be much appreciated.

Thanks

Marc
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Since we have no idea of what your data looks like, what your conditions are etc, what about some sample data and expected results (XL2BB) with explanation?

I also suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Hi Peter,

Thanks for the info....new to the forum and hadn't downloaded the add-in etc. Have done so and here is an example of the data range I am using....

Book1.xlsx
ABCDEFGH
11st serve outcome1stServeX1stServeY2nd serve outcome2ndServeX2ndServeYS/RPoint won by
2In3330ReturningRafael Nadal
3In6130ReturningRafael Nadal
4Error4227In3630ReturningNovak Djokovic
5In6231ReturningRafael Nadal
6In4430ReturningRafael Nadal
7In5034ReturningRafael Nadal
8In6535ReturningNovak Djokovic
9Error3927In4732ReturningRafael Nadal
10Error5553In5838ReturningNovak Djokovic
11In5032ReturningRafael Nadal
12Error7332In6340ReturningNovak Djokovic
13In4533ReturningRafael Nadal
14Ace3131ReturningNovak Djokovic
15In5830ReturningRafael Nadal
16In4535ReturningNovak Djokovic
17In6430ReturningNovak Djokovic
18Error4725In4434ReturningRafael Nadal
19Error6552Double fault6126ReturningRafael Nadal
20Error6327In6030ReturningNovak Djokovic
21In4833ReturningRafael Nadal
22In6732ReturningNovak Djokovic
23In3736ReturningNovak Djokovic
24Error5552Double fault8027ReturningRafael Nadal
25Error4353In4731ReturningRafael Nadal
26In6731ReturningNovak Djokovic
27In4633ReturningNovak Djokovic
28Error3328In4130ReturningRafael Nadal
29In6533ReturningNovak Djokovic
30In4429ReturningNovak Djokovic
31In6535ReturningNovak Djokovic
32In4935ReturningNovak Djokovic
33In6033ReturningNovak Djokovic
34Error4527Double fault4852ReturningRafael Nadal
35Error7232In6730ReturningRafael Nadal
36In4534ReturningRafael Nadal
37In6235ReturningRafael Nadal
38In4336ReturningRafael Nadal
39In6931ReturningNovak Djokovic
40In3334ReturningRafael Nadal
Sheet1



I would like to use the XY coordinate in a scatter chart, and will have a drop down menu to make this data interactive.

I would ultimately like to plot the XY coordinates based on whether the player was "serving" or "returning", and also whether the point was won by "Rafael Nadal" or "Novak Djokovic".

Kind regards,

Marc
 
Upvote 0
Thanks for providing some sample data. Did you provide the expected results with explanation why they are the expected results as requested? If so, I can't determine what that is.

You also didn't address the last paragraph of my previous post. ;)
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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
Back
Top