Index match vs Sumifs (2024)

A

andreabezt

New Member
  • Sep 16, 2020
  • #1

Hi,

Please help, I've tried researching for two days now and I'm ready to pull my hair out at this point! Hard coding cells I can get it to work, but I don't know how to make it dynamic and I don't even know whether I'm using the correct formula for what I want to do.

I've attached a file with a simulation of my data. I'm very new in Excel for this kind of purpose, I usually work with SQL, Access VBA and VB.

I have a tab of data that I refresh weekly, pulling data from other databases and it contains an unknown number of rows but the columns are always the same. This data is simulated and vastly simplified on the bookdata tab of my example.

On the books tab of my example I have two dropdowns, the firsts is based on a list of all the months of the year. Based on this first dropdown, it searches my data (on the bookdata tab) for all the matching months and then displays all the names that are associated with that month in dropdown two. These two dropdowns are in column B row 2 and 3 on the books tab of my example.

Based on the result of these two dropdowns, I have to display all the rest of the data in the specific row in bookdata, as seen in column G and H of the books tab.

Here's my problem
SUMIFS works swell with numbers, but it won't display text. I've done some reading and am now using Index match for that field (column I of books). As said, hard coding cell numbers works, but I can't make it work dynamically. Can someone please help me with this, even tell me if I'm using the correct formula!

Thank you in advance!

Andrea

Attachments

  • example.xlsm

    21.4 KB· Views: 14

B

bosco_yip

Excel Ninja
  • Sep 17, 2020
  • #2

I3 should read as :

=INDEX(bookdata!F:F,MATCH(1, (bookdata!C:C=B3)*(bookdata!A:A=LEFT(B2,3)),0))

This is an array formula, to be confirmed by pressing "Ctrl"+"Shift" + "Enter" 3 keystrokes together.

And,

For the multiplication of conditional checking it is advised to use limited range of cells instead of whole column range (which is 1 million cells)

So,

The formula become :

=INDEX(bookdata!F:F,MATCH(1, (bookdata!C1:C1000=B3)*(bookdata!A1:A1000=LEFT(B2,3)),0))

Remark :

For "Index match vs Sumifs"

Although using Sumifs formula look shorter than Index+Match formula,
in fact Index+Match always faster than Sumifs (Lookup function always faster than Math function).

Regards

Last edited:

P

Peter Bartholomew

Well-Known Member
  • Sep 17, 2020
  • #3

Using Microsoft 365:

Code:

= XLOOKUP( 1, (bookdata[Month]=LEFT(month,3)) * (bookdata[Person Reading]=person), bookdata[[Hours spent on Reading]:[Status]] )

or

Code:

= FILTER( bookdata[[Hours spent on Reading]:[Status]], (bookdata[Month]=LEFT(month,3)) * (bookdata[Person Reading]=person), "No data")

return all three values (time, count and status) with a single formula.

It is possible to treat worksheet formulas as programming if that is your mindset. For me, VBA is a second choice, largely used for automation and event handling.

P

Peter Bartholomew

Well-Known Member
  • Sep 17, 2020
  • #4

FYI
The attached is an MS365 file

Attachments

  • Book reviews.xlsm

    23.6 KB· Views: 8

A

andreabezt

New Member
  • Sep 17, 2020
  • #5

Thank you so much, I really appreciate your help. As for the VBA, I guess I'm just used to it Index match vs Sumifs (1) Once I know more about excel I'm sure I'll do better!

A

andreabezt

New Member
  • Sep 17, 2020
  • #6

Hi bosco-yip,

I've tried this, but I still get a not #N/A :-(, I'm not sure why it won't work for me. If I use VLOOKUP, can I check for 2 matching variables to get the row?

bosco_yip said:

=INDEX(bookdata!F:F,MATCH(1, (bookdata!C1:C1000=B3)*(bookdata!A1:A1000=LEFT(B2,3)),0))

A

andreabezt

New Member
  • Sep 17, 2020
  • #7

andreabezt said:

Hi bosco-yip,

I've tried this, but I still get a not #N/A :-(, I'm not sure why it won't work for me. If I use VLOOKUP, can I check for 2 matching variables to get the row?

View attachment 71258

Oh my, I did the ctrl, shift, enter incorrectly, when I highlighted it and repeated, it actually did it and it works!!! Thank you so much! Funny that none of the web tutorials tell you about this, seems to me quite an important step! Thank again, that was a great help!

You must log in or register to reply here.

Index match vs Sumifs (2024)
Top Articles
Facebook L7 Product Manager Salary in San Francisco Bay Area | $400K-$1.02M+ | Levels.fyi
EIN Number for Solo 401k Retirement Trust - My Solo 401k Financial
Average Jonas Wife
Davita Internet
Mcgeorge Academic Calendar
Www.craigslist Virginia
Green Bay Press Gazette Obituary
Costco in Hawthorne (14501 Hindry Ave)
Youtube Combe
Missing 2023 Showtimes Near Lucas Cinemas Albertville
Trini Sandwich Crossword Clue
Craigslist Pets Sac
Becu Turbotax Discount Code
7543460065
Nashville Predators Wiki
2 Corinthians 6 Nlt
Swgoh Turn Meter Reduction Teams
Golden Abyss - Chapter 5 - Lunar_Angel
Missouri Highway Patrol Crash
50 Shades Of Grey Movie 123Movies
FDA Approves Arcutis’ ZORYVE® (roflumilast) Topical Foam, 0.3% for the Treatment of Seborrheic Dermatitis in Individuals Aged 9 Years and Older - Arcutis Biotherapeutics
Icivics The Electoral Process Answer Key
Babbychula
Puretalkusa.com/Amac
Riversweeps Admin Login
Hdmovie2 Sbs
Wood Chipper Rental Menards
Pioneer Library Overdrive
O'reilly's In Mathis Texas
Roseann Marie Messina · 15800 Detroit Ave, Suite D, Lakewood, OH 44107-3748 · Lay Midwife
Weather Underground Durham
47 Orchid Varieties: Different Types of Orchids (With Pictures)
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Strange World Showtimes Near Atlas Cinemas Great Lakes Stadium 16
AI-Powered Free Online Flashcards for Studying | Kahoot!
Empire Visionworks The Crossings Clifton Park Photos
Myfxbook Historical Data
Hingham Police Scanner Wicked Local
Claim loopt uit op pr-drama voor Hohenzollern
Heelyqutii
The Minneapolis Journal from Minneapolis, Minnesota
Deshuesadero El Pulpo
2700 Yen To Usd
Stosh's Kolaches Photos
Gon Deer Forum
Bmp 202 Blue Round Pill
Swsnj Warehousing Inc
Server Jobs Near
Myra's Floral Princeton Wv
Blog Pch
Sdn Dds
Bellin Employee Portal
Latest Posts
Article information

Author: Greg O'Connell

Last Updated:

Views: 6754

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Greg O'Connell

Birthday: 1992-01-10

Address: Suite 517 2436 Jefferey Pass, Shanitaside, UT 27519

Phone: +2614651609714

Job: Education Developer

Hobby: Cooking, Gambling, Pottery, Shooting, Baseball, Singing, Snowboarding

Introduction: My name is Greg O'Connell, I am a delightful, colorful, talented, kind, lively, modern, tender person who loves writing and wants to share my knowledge and understanding with you.