Telegram Group & Telegram Channel
This media is not supported in your browser
VIEW IN TELEGRAM
Маълум бир рангдаги ячейкалар суммасини аниқлаш формуласи.

Excel
таркибида афсуски бу формула мавжуд эмас, лекин уни макрослар ёрдамида яратиб олишимиз мумкин. Бунинг учун:

1️⃣ Янги файлни xlsm форматида сақлаб олинг.
2️⃣ Alt + F11 бирикмасини босиб янги Модуль яратинг.
3️⃣ Қуйида кўрсатилган кодни кўчириб олиб модульни сақланг.
4️⃣ Формулани ишлатиш учун иккита критерий белгиланг: диапазон ва рангли ячейка.
5️⃣ Формула ҳисоблаши учун F9 клавишасини ишлатинг.

Public Function SummaRang(DataRange As Range, ColorSample As Range) As Double
Dim Sum As Double
Application.Volatile True

For Each cell In DataRange
If cell.Interior.Color = ColorSample.Interior.Color Then
Sum = Sum + cell.Value
End If
Next cell
SummaRang = Sum
End Function


Excel Hacks видеокурси | 1C видеокурси



tg-me.com/excel_hacks/641
Create:
Last Update:

Маълум бир рангдаги ячейкалар суммасини аниқлаш формуласи.

Excel
таркибида афсуски бу формула мавжуд эмас, лекин уни макрослар ёрдамида яратиб олишимиз мумкин. Бунинг учун:

1️⃣ Янги файлни xlsm форматида сақлаб олинг.
2️⃣ Alt + F11 бирикмасини босиб янги Модуль яратинг.
3️⃣ Қуйида кўрсатилган кодни кўчириб олиб модульни сақланг.
4️⃣ Формулани ишлатиш учун иккита критерий белгиланг: диапазон ва рангли ячейка.
5️⃣ Формула ҳисоблаши учун F9 клавишасини ишлатинг.

Public Function SummaRang(DataRange As Range, ColorSample As Range) As Double
Dim Sum As Double
Application.Volatile True

For Each cell In DataRange
If cell.Interior.Color = ColorSample.Interior.Color Then
Sum = Sum + cell.Value
End If
Next cell
SummaRang = Sum
End Function


Excel Hacks видеокурси | 1C видеокурси

BY Excel Hacks


Share with your friend now:
tg-me.com/excel_hacks/641

View MORE
Open in Telegram


Excel Hacks Telegram | DID YOU KNOW?

Date: |

Why Telegram?

Telegram has no known backdoors and, even though it is come in for criticism for using proprietary encryption methods instead of open-source ones, those have yet to be compromised. While no messaging app can guarantee a 100% impermeable defense against determined attackers, Telegram is vulnerabilities are few and either theoretical or based on spoof files fooling users into actively enabling an attack.

Importantly, that investor viewpoint is not new. It cycles in when conditions are right (and vice versa). It also brings the ineffective warnings of an overpriced market with it.Looking toward a good 2022 stock market, there is no apparent reason to expect these issues to change.

Excel Hacks from ca


Telegram Excel Hacks
FROM USA