V
V
Vlad2017-02-04 02:13:02
excel
Vlad, 2017-02-04 02:13:02

How to correct DLSTR formula in Excel?

Am I writing the formula wrong? Gives an error
=Lstr(D3:D4)
=len(D3:D4)
on the screen there is a typo DLSTR
348ff4ebf714406b9bacfdeac350a09d.jpg34e6e9dda1c94be7a53ee100413950e1.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey S., 2017-02-04
@Sc0undRel

Alt + F11 , right click Insert → Module and in this module we write:

Function СРДЛВСЕХСТРОК(parRange As Range)
 i = 0
 countLine = 0
  For Each c In parRange
    countLine = countLine + Len(c)
    i = i + 1
  Next
 СРДЛВСЕХСТРОК = int(countLine / i)
End Function

After that, you have a new function AVERAGEALLROWS , which can calculate the average value of characters in the specified range

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question