SUMIF vs. VLOOKLUP

Beetelbug

New Member
Joined
Jul 15, 2004
Messages
22
I've had experience with both - but more recently using SUMIF formulas on large financial models (several spreadsheets in one workbook).

I was wondering if there is a considerable difference in calculating/processing time using either one. For example, will my worksheets be less sluggish if I use vlookups vs. SUMIF formulas?

As an example -- I have 15 worksheets, referencing two "data tabs" using SUMIF formulas, to draw specific data into them.

I'm wondering if I use VLOOKUP formulas instead, if it will make a difference and help speed things along

Thanks in advance.
 
It should be:
=INDEX('Actual Data'!F$7:F$956,MATCH($C15,'Actual Data'!$A$7:$A$956,0))
and it is not an array formula so does not need to be entered with C+S+E.
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Just a misplaced )

The 0 is part of the Match

try

=INDEX('Actual Data'!F$7:F$956,MATCH($C15,'Actual Data'!$A$7:$A$956,0))

Does not need CSE
 
Upvote 0
Awesome - thanks rorya and jon..

and to get rid of the #NAs that show up when there is no value to return, just incorporate the IF(ISNA... In front of that? or is there an easier way...
 
Upvote 0
Now, if this is going to be used on several columns, it would save you MUCH sheet performance to put the match in another available column.

From your formula I'm guessing the formula is in Row 15
So say column Z for example

In Z15 put
=MATCH($C15,'Actual Data'!$A$7:$A$956,0)

Then your index match formla is

=INDEX('Actual Data'!F$7:F$956,$Z15)

Then you can drag that formula to the right to incriment the column F, but it continues to use the Match from Z15.
Therefore the match is only done once, and used many times by the formulas in each column.
That saves TONS of sheet performance.
 
Upvote 0
=IF(ISNA(MATCH($C15,'Actual Data'!$A$7:$A$956,0)),"",INDEX('Actual Data'!F$7:F$956,MATCH($C15,'Actual Data'!$A$7:$A$956,0)))

you didn't mention whether you are retrieving multiple values for the same lookup value?
 
Upvote 0
Awesome - thanks rorya and jon..

and to get rid of the #NAs that show up when there is no value to return, just incorporate the IF(ISNA... In front of that? or is there an easier way...

Incorporating that with my last post
That match formula is in Z15

=IF(ISNA($Z15),"",INDEX('Actual Data'!F$7:F$956,$Z15))
 
Upvote 0
Now, if this is going to be used on several columns, it would save you MUCH sheet performance to put the match in another available column.

From your formula I'm guessing the formula is in Row 15
So say column Z for example

In Z15 put
=MATCH($C15,'Actual Data'!$A$7:$A$956,0)

Then your index match formla is

=INDEX('Actual Data'!F$7:F$956,$Z15)

Then you can drag that formula to the right to incriment the column F, but it continues to use the Match from Z15.
Therefore the match is only done once, and used many times by the formulas in each column.
That saves TONS of sheet performance.

yes the formula is in row 15 HOWEVER, there is a different formula/lookup value on EACH row going down..
So, essentially I could put that formula in column Z for all my rows then, huh..
 
Upvote 0
Yes, notice the $ in the match formula..

$Z15

That means in your index formula, the reference remains column Z when dragged Right or Left.
But the reference ROW will incriment as dragged down. To $Z16, $Z17 etc...

So as dragged right, your formula will incriment like

=IF(ISNA($Z15),"",INDEX('Actual Data'!F$7:F$956,$Z15))
=IF(ISNA($Z15),"",INDEX('Actual Data'!G$7:G$956,$Z15))
=IF(ISNA($Z15),"",INDEX('Actual Data'!H$7:H$956,$Z15))

Then when dragged down it looks like

=IF(ISNA($Z15),"",INDEX('Actual Data'!F$7:F$956,$Z15))
=IF(ISNA($Z16),"",INDEX('Actual Data'!F$7:F$956,$Z16))
=IF(ISNA($Z17),"",INDEX('Actual Data'!F$7:F$956,$Z17))
 
Upvote 0
Yes, notice the $ in the match formula..

$Z15

That means in your index formula, the reference remains column Z when dragged Right or Left.
But the reference ROW will incriment as dragged down. To $Z16, $Z17 etc...

I understand that part..

and actually when i copy your formula in column Z as you noted, I get a return value of 1, then in the next row, i get 3, etc...

the return value i'm thinking should be the concatenated text that lives in C15, I would think.. eg. "82 CENTRAL WORK TEAM53001 PAYROLL - REGULAR", because THAT is teh data I am looking up on that Actual Data worksheet.
 
Upvote 0
As you drag the MATCH formula down,

In row 15 it looks for a match for C15
In row 16 it looks for a match for C16
in row 17 it looks for a match for C17
 
Upvote 0

Forum statistics

Threads
1,226,059
Messages
6,188,634
Members
453,487
Latest member
LZ_Code

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top