Remove everything after the ?

shlomek12

Board Regular
Joined
Aug 2, 2011
Messages
242
https://www.walmart.com/ip/Play-Doh-*******-Creations-Sizzlin-Stovetop-Food-Set/172270905?wpa_bd=1529079692726&wpa_ref_id=b_f43a5d01-81fe-4dcd-9c44-abb4a258769f_1&wpa_aux_info=__aux_info__&wpa_tag=__tag__&wpa_pos=6&wpa_plmt=__plmt__&wpa_aduid=__aduid

How can I remove everything after the?

<tbody>
</tbody>
 

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.
can u right click it and copy and paste in the cell you want it in excel
 
Upvote 0
Hi,

A couple of ways:


Book1
A
1https://www.walmart.com/ip/Play-Doh-*******-Creations-Sizzlin-Stovetop-Food-Set/172270905?wpa_bd=1529079692726&wpa_ref_id=b_f43a5d01-81fe-4dcd-9c44-abb4a258769f_1&wpa_aux_info=__aux_info__&wpa_tag=__tag__&wpa_pos=6&wpa_plmt=__plmt__&wpa_aduid=__aduid
2https://www.walmart.com/ip/Play-Doh-*******-Creations-Sizzlin-Stovetop-Food-Set/172270905
3https://www.walmart.com/ip/Play-Doh-*******-Creations-Sizzlin-Stovetop-Food-Set/172270905
Sheet129
Cell Formulas
RangeFormula
A2=REPLACE(A1,FIND("?",A1),255,"")
A3=LEFT(A1,FIND("?",A1)-1)
 
Last edited:
Upvote 0
Thanks for this

How can I make this as in IF Statement?

That if the cell contains an ? , then it should run this formula



Hi,

A couple of ways:

A
1https://www.walmart.com/ip/Play-Doh-*******-Creations-Sizzlin-Stovetop-Food-Set/172270905?wpa_bd=1529079692726&wpa_ref_id=b_f43a5d01-81fe-4dcd-9c44-abb4a258769f_1&wpa_aux_info=__aux_info__&wpa_tag=__tag__&wpa_pos=6&wpa_plmt=__plmt__&wpa_aduid=__aduid
2https://www.walmart.com/ip/Play-Doh-*******-Creations-Sizzlin-Stovetop-Food-Set/172270905
3https://www.walmart.com/ip/Play-Doh-*******-Creations-Sizzlin-Stovetop-Food-Set/172270905

<colgroup><col style="width: 25pxpx"><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet129

Worksheet Formulas
CellFormula
A2=REPLACE(A1,FIND("?",A1),255,"")
A3=LEFT(A1,FIND("?",A1)-1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
What do you need an IF for?
I'm assuming you have some that don't have the ?. Try this instead:
=LEFT(A1,FIND("?",A1&"?")-1)


Excel 2010
A
1https://www.walmart.com/ip/Play-Doh-*******-Creations-Sizzlin-Stovetop-Food-Set/172270905?wpa_bd=1529079692726&wpa_ref_id=b_f43a5d01-81fe-4dcd-9c44-abb4a258769f_1&wpa_aux_info=__aux_info__&wpa_tag=__tag__&wpa_pos=6&wpa_plmt=__plmt__&wpa_aduid=__aduid
2https://www.walmart.com/ip/Play-Doh-*******-Creations-Sizzlin-Stovetop-Food-Set/172270905
3
4http://www.google.com
5http://www.google.com
Sheet1
Cell Formulas
RangeFormula
A2=LEFT(A1,FIND("?",A1&"?")-1)
A5=LEFT(A4,FIND("?",A4&"?")-1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,603
Members
449,089
Latest member
Motoracer88

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