Assigning Heading to New Column

seguin85

Active Member
Joined
Mar 17, 2015
Messages
278
Office Version
  1. 365
Platform
  1. Windows
Hi,

I export some date from project that is in the following format. What I want to do is take the priority number of the heading and assign it to a new column
ABC
1ProjectNamePriority
2C1Priority 1
3C1Task 71
4C1Task 91
5C1Task 121
6C1Priority 2
7C1Task 12
8C1Task 22
9C1Priority 3
10C1Task 223
11C1Task 43
12C1Task 53

<tbody>
</tbody>

I am looking for some type of formula to populate column C with the proper priority number.

Thanks!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
How about
=IF(LEFT(B2,8)="Priority","",IF(LEFT(B1,8)="Priority",--RIGHT(B1),C1))
 
Upvote 0
That worked perfectly, and so much simpler than what I was trying to figure out.
 
Upvote 0

Forum statistics

Threads
1,215,580
Messages
6,125,654
Members
449,245
Latest member
PatrickL

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