• 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
  • Login

Compare cell value to a different column in a different row without Office 365|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Compare cell value to a different column in a different row without Office 365|General Excel Questions & Answers|Excel Forum|My Online Training Hub

office scripts course

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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…Compare cell value to a different c…
sp_PrintTopic sp_TopicIcon
Compare cell value to a different column in a different row without Office 365
Avatar
Shawn Wallack
Member
Members
Level 0
Forum Posts: 77
Member Since:
December 7, 2021
sp_UserOfflineSmall Offline
1
April 22, 2022 - 7:58 am
sp_Permalink sp_Print

Hello -

Please see attached XLS sample.

I have a table of data that shows teams, sprints, planned story points, and actual story points. I'm trying to create a formula to calculate the VARIANCE field.

Specifically, I need to compare what each team COMMITTED (planned) to deliver in Sprint T against what they actually COMPLETED in Sprint T-1 (i.e., the prior sprint) and also take into consideration whether or not they met their commitment in Sprint T-1.

So, there are only a few possibilities:

  1. Met commitment in Sprint 1
  2. Did not meet commitment in Sprint 1
  3. Planned more in Sprint 2 than they completed in Sprint 1
  4. Did not plan more in Sprint 2 than they completed in Sprint 1

If #2 is TRUE and #3 is TRUE then this team is playing "catch-up." That is, they are trying to deliver more points in Sprint 2 because they under delivered in Sprint 1.

I'm not sure how to compare a cell value in one column (e.g., Sprint 3 Commitment) against a different column in a different row (e.g., Sprint 2 Completed), especially when the rows are in unpredictable positions in the table.  

See XLS for details.

Thanks

sp_AnswersTopicSeeAnswer See Answer
Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 219
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
2
April 23, 2022 - 12:55 am
sp_Permalink sp_Print sp_EditHistory

Hey Shawn!

I used a combination of VLOOKUP and INDEX/MATCH in your Variance column. So here's the formula I concocted and what it's doing:

=IFERROR([@[Committed THIS Sprint]]/(VLOOKUP([@Team]&" | "&INDEX(Table2[Sprint],MATCH($B13,Table2[Sprint],0)-1),Table1[[Unique Sprint]:[Completed THIS Sprint]],4,FALSE))-1,0)

Instead of hard coding the cell you are looking for the Unique sprint name by combining the team name of the row, the pipe, finding the previous sprint name, and then returning the number of sprints they completed for that previous sprint.

Really you could also just use an AND statement and find the team name and use the INDEX/MATCH formula to find the previous sprint name, that would work just as well.

Hope that's what you are looking for.

sp_AnswersTopicAnswer
Answers Post
Avatar
Shawn Wallack
Member
Members
Level 0
Forum Posts: 77
Member Since:
December 7, 2021
sp_UserOfflineSmall Offline
3
April 25, 2022 - 8:38 am
sp_Permalink sp_Print

Thanks, Jessica -

I used your idea to craft a slightly different solution. My approach does require that the rows be in any particular sequence.

  • I separate the sprint number
    • =TRIM(MID([@SPRINT],FIND(".",[@SPRINT])+1,256))
  • I figure out the previous sprint number
    • =IF([@[SPRINT NUMERIC]]-1>0,[@[SPRINT NUMERIC]]-1,NA())
  • I figure out if the previous sprint number is legit
    • =[@[ART TEAM]] & " | S" & [@[PI NUMERIC]]& "." & [@[PREV SPRINT NUMERIC]]
  •  I get the commitment from the previous sprint
    • =INDEX(Table_Velocity, MATCH([@[PREV UNIQUE SPRINT]],[ART TEAM SPRINT],0),5) 
  • I get the velocity (completed) from the previous sprint
    • =INDEX(Table_Velocity, MATCH([@[PREV UNIQUE SPRINT]],[ART TEAM SPRINT],0),6)
  • I calculate the ratio
    • =IFERROR(NUMBERVALUE(([@COMMITTED] / [@[PREV SPRINT COMPLETED]]-1)),0)

Thanks for the great idea!

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Trevor Pindling
Stevan Kanjo
Erin Sheldon
Nikita Bhatia
Sheilah Taylor
Clare Webber
David Jenssen
Dominic Brosnahan
Young You
Jennifer Owens
Forum Stats:
Groups: 3
Forums: 24
Topics: 6524
Posts: 28554

 

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

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • 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

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

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

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.