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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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

Forum statistics

Threads
1,223,480
Messages
6,172,510
Members
452,463
Latest member
Debz

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