Excel Formula -

jpryal

New Member
Joined
May 20, 2008
Messages
14
Hello Group -

I have a very long Excel Formula I am trying to truncate after a given number of characters. I would like to delete everything that comes after View#. Is there a way to do this efficiently without having to go into each cell and delete manually? Thanks.


=HsGetValue("Scenario#"&D$2&";Year#"&D$5&";Period#"&$B$6&";View#"&$B$8&";Entity#"&$A26&";Value#"&$B$7&";Account#"&D$3&";XXX#"&$B$9&";Custom1#"&$B$10&";Custom2#"&$B$11&";Custom3#"&$B$12&";Custom4#"&$B$13&"")/1000
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Does "delete everything that comes after View#" mean that you want

=HsGetValue("Scenario#"&D$2&";Year#"&D$5&";Period#"&$B$6&";View#")

or
=HsGetValue("Scenario#"&D$2&";Year#"&D$5&";Period#"&$B$6&";View#")/1000
 
Upvote 0
The second option

=HsGetValue("Scenario#"&D$2&";Year#"&D$5&";Period#"&$B$6&";View#")/1000
 
Upvote 0

Forum statistics

Threads
1,203,111
Messages
6,053,571
Members
444,673
Latest member
Jagadeshrao

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