Replicate publisher in column C for Google Sheets

parvares

New Member
Joined
Jul 17, 2022
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hello, starting from this sheet with column A (title, responsibility, publisher) I would need a formula that extracts only the publisher in column C. I used this formula:

Rich (BB code):
= LEFT (MID (A2, FIND ("-", A2) +1, LEN (A2)), FIND (",", MID (A2, FIND ("-", A2) +1, LEN (A2))) ) -1)

but column C gives me the place of publication and the publisher. I would like instead only the publisher.

Many thanks!!
 
That will be difficult as there is no obvious way to determine what to return.
OK thanks! Can I ask you two questions related to these partially revised formulas in this file?
1) Is it possible to avoid that by dragging columns B, C, D the "#value!" value comes out? I would simply prefer empty cells when the original data do not appear in column A.
2) Is it possible to avoid the prefix "di" in the cells of column B relating to the author?
Many thanks again!

Formula in B1 (Author):
Excel Formula:
=MID(A2;SEARCH("Condividi";A2)+9;SEARCH("(Autore)";A2)-SEARCH("Condividi";A2)-10)

Formula in C1 (Publisher):
Excel Formula:
=LEFT(MID(A2;FIND("^";SUBSTITUTE(A2;CHAR(10);"^";LEN(A2)-LEN(SUBSTITUTE(A2;CHAR(10);""))))+1;LEN(A2));FIND(",";MID(A2;FIND("^";SUBSTITUTE(A2;CHAR(10);"^";LEN(A2)-LEN(SUBSTITUTE(A2;CHAR(10);""))))+1;LEN(A2)))-1)

Formula in D1 (Date):
Excel Formula:
=RIGHT(A2;LEN(A2)-FIND(",";A2)-1)
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
For point 1 you can use
Excel Formula:
=IF(A2="","",some formula)
 
Upvote 0
You could use
Excel Formula:
=substitute(MID(A2;SEARCH("Condividi";A2)+9;SEARCH("(Autore)";A2)-SEARCH("Condividi";A2)-10),"di ","")
but if any words end with di then it would be removed.
 
Upvote 0
Ah ok... Isn't it there a formula similar to this one?

Excel Formula:
=MID(A2;SEARCH("Condividi di";A2)+9;SEARCH("(Autore)";A2)-SEARCH("Condividi di";A2)-10)
 
Upvote 0
... I mean entering "Condividi di" in search function...

Excel Formula:
=MID(A2;SEARCH("Condividi di";A2)+9;SEARCH("(Autore)";A2)-SEARCH("Condividi di";A2)-10)
 
Upvote 0
Hello, maybe I found the solution. Is it possible to convert this formula for MS Excel? Thanks

Google Sheets
Excel Formula:
=REGEXEXTRACT(SUBSTITUTE(A2;"(Autore)";"#");"di (.*)#")

LibreOffice Calc
Excel Formula:
=IFERROR(TRIM(SUBSTITUTE(REGEX(SUBSTITUTE(SUBSTITUTE(B2;"di";"#");"(Autore)";"#");"# .* #");"#";""));"")
 
Upvote 0
Fraid not, Excel does not have a Regex function.
 
Upvote 0

Forum statistics

Threads
1,216,246
Messages
6,129,700
Members
449,528
Latest member
Paula03

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