SUMIF or LOOKUP?

hakim_tanzil

Board Regular
Joined
May 10, 2012
Messages
56
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
When we have the option to choose between SUMIF or LOOKUP, which one would you use? Which one is more effective?

I have a huge database on the employers name, date of birth, location and salary. When I use the VLOOKUP function to get one of the employer's salary on my other sheets (ex. =VLOOKUP(A1,'SHEET1'!A:D,4,FALSE)), of course I'll get what I want. But sometimes, mostly every year, when I need to add/delete the information in between those column or change the column's arrangement, the part on the col_index will still stick on 4, rather than automatically follow the changed pattern. I personally think that the SUMIF function (ex. =SUMIF('SHEET1'!A:A,A1,'SHEET1'!D:D)) is more easier to work with as when you add/delete/change the column, the sum_range part will automatically change itself. I understand that SUMIF function won't get me the name/date of birth/ or any text that I needed, and in that case I'd have to go back to the LOOKUP function.

I'm really looking forward to any of your thoughts/inputs on this discussion. As I always have this doubtful feeling when I had to choose between SUMIF or LOOKUP function.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
=VLOOKUP(A1,'SHEET1'!A:D,4,FALSE))

instead use the column reference like this:-

=VLOOKUP(A1,Sheet1!A:D,COLUMNS(D1),FALSE) which returns 4 as column number. so when you make changes, the column reference will get adjusted but i did not test this and it only my suggestion and view.
 
Upvote 0
Thanks lundBhaiz. Im using ipad now, might try your suggestion change to COLUMN tomorrow. Let you know.

Ok, let me get this right.

When we have the option to choose between SUMIF or VLOOKUP, which one would you use? Which one is more effective?
 
Upvote 0

Forum statistics

Threads
1,219,162
Messages
6,146,660
Members
450,706
Latest member
LGVBPP

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