Ignore All The Dashes And Return The Name Only

Turk182

Board Regular
Joined
Sep 9, 2009
Messages
66
Office Version
  1. 365
Platform
  1. MacOS
Hello All.

I have an Excel sheet for which MOST cells of each row have a dash ONLY (Columns "G" Thru "P"). ONE cell in the row will have a name (either "Bob", "Carol","Ted", or "Alice").
I need an Excel formula that will ignore all the dashes and return the name only (in whichever column it is found) and place the name in column "A" (formula column) of that row.

Is that possible with just formulas?
Thx, Turk182
 
I think this will work.

Mustard Oil SKU.xlsx
BCDEFGHI
4
5Bob Bob
6CarolCarol
7TedTed
8AliceAlice
Sheet2
Cell Formulas
RangeFormula
B5:B8B5=IF(F5="","",F5) & "" & IF(G5="","",G5) & "" & IF(H5="","",H5) & "" & IF(I5="","",I5)


I think this will work.
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I think this will work.

Mustard Oil SKU.xlsx
BCDEFGHI
4
5Bob Bob
6CarolCarol
7TedTed
8AliceAlice
Sheet2
Cell Formulas
RangeFormula
B5:B8B5=IF(F5="","",F5) & "" & IF(G5="","",G5) & "" & IF(H5="","",H5) & "" & IF(I5="","",I5)


I think this will work.
I think this will work.

Mustard Oil SKU.xlsx
BCDEFGHI
4
5Bob Bob
6CarolCarol
7TedTed
8AliceAlice
Sheet2
Cell Formulas
RangeFormula
B5:B8B5=IF(F5="","",F5) & "" & IF(G5="","",G5) & "" & IF(H5="","",H5) & "" & IF(I5="","",I5)


I think this will work.
Thx FMHasan. Good resolution, but--as the list and number of rows grow – I am trying to not have to keep up with the column in which the name appears.
 
Upvote 0

Forum statistics

Threads
1,215,218
Messages
6,123,676
Members
449,116
Latest member
HypnoFant

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