Copy cells based of certain text or blanks spaces?

jbarrick007

New Member
Joined
Jul 9, 2020
Messages
36
Office Version
  1. 365
Platform
  1. Windows
Im looking for help with combining formulas in the right order to reach my goal. But im uncertain of how to combine IF, SEARCH, or others together for my goal. Thanks for the help.

Please see below.
Goal - Copy F4 to D4 and F5 to E5 (typical for a table containing 150 rows)
All F4 types cells are different because they have 6 blank spaces before the text, and outline numbers are x.x (2 digits)
All F5 types cells are different because they have 9 blank spaces before the text, and outline numbers are x.x.x (3 digits)
Its pretty straight forward how to copy F3 to C3, but Thought I would point out that is part of what I am doing to. F3 has zero spaces.


(A) WorkFlow #(B) Outline #(C) Phase(D) Milestones (E) Tasks (F) Events
Row 3Phase 22Planning Planning
Row 42.012.1 PIR Adoption
Row 52.1.1 Submit PIR to FCR
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Forgive the editing above if column F it is suppose to look like...
F3 - "Planning" - zero spaces
F4 - " PIR Adoption" - six spaces
F5 - " Submit PIR to FCR" - nine spaces
 
Upvote 0
Maybe
+Fluff New.xlsm
ABCDEF
4(A) WorkFlow #(B) Outline #(C) Phase(D) Milestones(E) Tasks(F) Events
5Phase 22Planning  Planning
62.012.1  PIR Adoption  PIR Adoption
72.1.1   Submit PIR to FCR Submit PIR to FCR
Test
Cell Formulas
RangeFormula
C5:C7C5=IF(LEFT(F5,1)<>" ",F5,"")
D5:D7D5=IF(AND(LEFT(F5,6)=REPT(" ",6),LEN(B5)=3),F5,"")
E5:E7E5=IF(LEFT(F5,9)=REPT(" ",9),F5,"")
 
Upvote 0
Maybe
+Fluff New.xlsm
ABCDEF
4(A) WorkFlow #(B) Outline #(C) Phase(D) Milestones(E) Tasks(F) Events
5Phase 22Planning  Planning
62.012.1  PIR Adoption  PIR Adoption
72.1.1   Submit PIR to FCR Submit PIR to FCR
Test
Cell Formulas
RangeFormula
C5:C7C5=IF(LEFT(F5,1)<>" ",F5,"")
D5:D7D5=IF(AND(LEFT(F5,6)=REPT(" ",6),LEN(B5)=3),F5,"")
E5:E7E5=IF(LEFT(F5,9)=REPT(" ",9),F5,"")


Hey that worked great!!!
Would it be easy enough to remove those spaces once i moved them over?
 
Upvote 0
Yup, you can use trim, like
+Fluff New.xlsm
ABCDEF
4(A) WorkFlow #(B) Outline #(C) Phase(D) Milestones(E) Tasks(F) Events
5Phase 22Planning  Planning
62.012.1 PIR Adoption  PIR Adoption
72.1.1  Submit PIR to FCR Submit PIR to FCR
Test
Cell Formulas
RangeFormula
C5:C7C5=IF(LEFT(F5,1)<>" ",F5,"")
D5:D7D5=IF(AND(LEFT(F5,6)=REPT(" ",6),LEN(B5)=3),TRIM(F5),"")
E5:E7E5=IF(LEFT(F5,9)=REPT(" ",9),TRIM(F5),"")
 
Upvote 0
Yup, you can use trim, like
+Fluff New.xlsm
ABCDEF
4(A) WorkFlow #(B) Outline #(C) Phase(D) Milestones(E) Tasks(F) Events
5Phase 22Planning  Planning
62.012.1 PIR Adoption  PIR Adoption
72.1.1  Submit PIR to FCR Submit PIR to FCR
Test
Cell Formulas
RangeFormula
C5:C7C5=IF(LEFT(F5,1)<>" ",F5,"")
D5:D7D5=IF(AND(LEFT(F5,6)=REPT(" ",6),LEN(B5)=3),TRIM(F5),"")
E5:E7E5=IF(LEFT(F5,9)=REPT(" ",9),TRIM(F5),"")

Hello Fluff,
You are so helpful. Im know a fair bit, but not really compared to what excel can do. I will pay forward helping others the way you are.

Can I ask you one last question for this thread???
I know how to Insert a bullet point symbol by adding -- =" •"&IF(AND(LEFT(F6,6)=REPT(" ",6),LEN(B6)=3),TRIM(F6),"") or -- =" ○ "&IF(LEFT(F7,9)=REPT(" ",9),TRIM(F7),"")
But doing that adds the bullet points to every line when I only want to do it to the lines that copy info over.
So how do I use the ISBLANK or LEFT funtions to add the symbols only on the line that copy? So if you ar elooking at the same example above and the code =" •"&IF(AND(LEFT(F6,6)=REPT(" ",6),LEN(B6)=3),TRIM(F6),"") it would only add the bullet point to cell D6?

Thank you again so much.
 
Upvote 0
Hello Fluff,
You are so helpful. Im know a fair bit, but not really compared to what excel can do. I will pay forward helping others the way you are.

Can I ask you one last question for this thread???
I know how to Insert a bullet point symbol by adding -- =" •"&IF(AND(LEFT(F6,6)=REPT(" ",6),LEN(B6)=3),TRIM(F6),"") or -- =" ○ "&IF(LEFT(F7,9)=REPT(" ",9),TRIM(F7),"")
But doing that adds the bullet points to every line when I only want to do it to the lines that copy info over.
So how do I use the ISBLANK or LEFT funtions to add the symbols only on the line that copy? So if you ar elooking at the same example above and the code =" •"&IF(AND(LEFT(F6,6)=REPT(" ",6),LEN(B6)=3),TRIM(F6),"") it would only add the bullet point to cell D6?

Thank you again so much.

I finally figured it out. --- =IF(LEFT(F7,9)=REPT(" ",9),TRIM(" ○"&F7),"")
 
Upvote 0
Try it like
=IF(AND(LEFT(F5,6)=REPT(" ",6),LEN(B5)=3)," • "&TRIM(F5),"")
 
Upvote 0
thank you very much. I knew it was just the ordering of things but for some reason wasn't getting it correct.
 
Upvote 0

Forum statistics

Threads
1,215,514
Messages
6,125,271
Members
449,219
Latest member
daynle

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