• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Counting Average Consecutive Positive and Negative Numbers|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Counting Average Consecutive Positive and Negative Numbers|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Counting Average Consecutive Positi…
sp_PrintTopic sp_TopicIcon
Counting Average Consecutive Positive and Negative Numbers
Avatar
vahid jannati
Member
Members
Level 0
Forum Posts: 17
Member Since:
July 8, 2021
sp_UserOfflineSmall Offline
1
July 20, 2021 - 3:58 pm
sp_Permalink sp_Print

Hello,

I need a formula to calculate my answer including the file

Thank you in advance for your response

sp_AnswersTopicSeeAnswer See Answer
Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 215
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
2
July 21, 2021 - 12:19 am
sp_Permalink sp_Print

I used the Sumproduct function to get the answer you are looking for. See the attached file, hope it helps! 🙂

Avatar
vahid jannati
Member
Members
Level 0
Forum Posts: 17
Member Since:
July 8, 2021
sp_UserOfflineSmall Offline
3
July 21, 2021 - 3:17 am
sp_Permalink sp_Print

Thank you for your time

But it's so difficult once I have thousands variable data

Counting positive and negative numbers simply is just a hint

Your formula does not perform calculations automatically

Regards

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 215
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
4
July 21, 2021 - 4:18 am
sp_Permalink sp_Print

I'm confused as to what you are looking for, then? You don't want the average of the positives and the average of the negatives? What are you looking to achieve?

Avatar
vahid jannati
Member
Members
Level 0
Forum Posts: 17
Member Since:
July 8, 2021
sp_UserOfflineSmall Offline
5
July 21, 2021 - 5:24 am
sp_Permalink sp_Print

I want average of positive and negative number in column A and also it's need to calculate automatically column B because I have variable data in thousands numbers and column B can be changed everyday and it is impossible to resync manualy column B

first formula be able to count consecutive number in column B and then through that calculate average count

Please delete column B and count it in formula "automatic count column B"

I apologize for the complexity of my question

Thank you in advance

Avatar
vahid jannati
Member
Members
Level 0
Forum Posts: 17
Member Since:
July 8, 2021
sp_UserOfflineSmall Offline
6
July 21, 2021 - 2:55 pm
sp_Permalink sp_Print

Please look at column B & C in this file 

it can be calculate automated but the result is not true

look at please and I'm sure you get my mean

Thank you very much

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 648
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
7
July 21, 2021 - 7:30 pm
sp_Permalink sp_Print

Using helper columns:

In b2: =IF(A2>=0,IF(OR(A3<0,A3=""),COUNTIF(A$2:A2,">=0")-SUM(B$1:B1),""),"")

and copy down.

In C2: =IF(A2<0,IF(OR(A3>=0,A3=""),COUNTIF(A$2:A2,"<0")-SUM(C$1:C1),""),"")

and copy down. Then just use AVERAGE on each of those columns.

sp_AnswersTopicAnswer
Answers Post
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 215
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Anthony van Riessen
Erlinda Eloriaga
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Ngoc Qui Nguyen
Clement Mansfield
Rose .
Bindu Menon
Baruch Zemer
Forum Stats:
Groups: 3
Forums: 24
Topics: 6352
Posts: 27779

 

Member Stats:
Guest Posters: 49
Members: 32319
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.