If Statement? Yes or No? What should I use

khesselbacher

New Member
Joined
Jul 2, 2016
Messages
9
Hi, I am wondering what would be the best way to go about this.

I have a column of names,another column of subject and in another column either yes or no.


I want data like this........... To become like this
NameSubject Action
RanWalkHikeSwim
KellyYesYesNoYes
SharonYesYesNoYes

<tbody>
</tbody>
KellyRan Yes
KellyWalk Yes
KellyHikeNo
KellySwimYes
Sharon RanYes
SharonWalk Yes
SharonHikeNo
SharonSwimNo
RanWalkHikeSwim
KellyYesYesNoYes
SharonYesYesNoYes

<tbody>
</tbody><colgroup><col span="5"></colgroup>
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi,

With your source table holding data in range A2:C9 ...

In cell F2 =OFFSET($A$2,(ROW()-2)*4,0)
In cell G1 =OFFSET($A$2,COLUMN()-7,1)
In cell G2 =OFFSET($A$2,COLUMN()-7,2)

Then from cell G2 you can copy your entire range ...

HTH
 
Upvote 0
Could be a pivot table if you get rid of all the No values. Highlight the table and Insert PivotTable. Row label should be Subject, Column label should be Action, Values should be Count of Value.

Is that something you could tinker with?
 
Upvote 0
Thank you for your response, but I don't think that will work has I have serveral names that may not have had any of those activities. This is data I am making up. The main thing is to get the Activity as its own column.
Should I do a vlookup? Or a macro, if Kelly ran, then go look at this column to get the notes?

Kelly ran Yes Ran Swam Hike Bike
Kelly Swam No Kelly Yes No 1/23 Yes
Kelly Hike 1/23 Susan Yes
Kelly Bike Yes Mike Yes 2/3 No
Susan Ran Yes Bob 2/1
Mike Ran Yes
Mike Hike No
Mike Swam 2/3
Bob Hike 2/1

Thank you, I look forward to one of you geniuses out there responding with the best formula or macro.
 
Last edited:
Upvote 0
Hi,

In cell F2, in order to get your list of Unique individuals ...

=INDEX($A$2:$A$10,MATCH(0,INDEX(COUNTIF($F$1:F1,$A$2:$A$10),0,0),0))

HTH
 
Upvote 0
DATA is this way, in no orderI want it to drop comments into the correct column
SubjectCommentsPursuit StrategyClient DemoPursuit Support Budget, CO, PoC DemosClient Intro Meeting
Bob's ChopPursuit StrategyYesBob's ChopYesYes1/10 David confirmed services for SFDC OppYes
Bob's ChopClient DemoYesMary Sue'sYesYesYes
Bob's ChopPursuit Support Budget, CO, PoC Demos1/10 David confirmed services for SFDC OppFritz and FubaYes
Bob's ChopClient Intro MeetingYesTricia PetYes 12/7Yes
Mary Sue'sClient DemoYesIrene HomeYesYesYesYes
Mary Sue'sClient Intro MeetingYes
Mary Sue'sPursuit Support Budget, CO, PoC DemosYes
Mary Sue'sPursuit StrategyYes
Fritz and FubaClient DemoYes
Tricia PetClient DemoYes 12/7
Tricia PetClient Intro MeetingYes
Irene HomeClient DemoYes
Irene HomePursuit Support Budget, CO, PoC DemosYes
Irene HomePursuit StrategyYes
Irene HomeClient Intro MeetingYes

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col><col></colgroup>


Hi,

In cell F2, in order to get your list of Unique individuals ...

=INDEX($A$2:$A$10,MATCH(0,INDEX(COUNTIF($F$1:F1,$A$2:$A$10),0,0),0))

HTH
 
Upvote 0

Forum statistics

Threads
1,215,501
Messages
6,125,169
Members
449,212
Latest member
kenmaldonado

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