Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-09-2016, 09:14 AM
paxon paxon is offline Can I substitute Vlookup with Index Windows XP Can I substitute Vlookup with Index Office 2007
Novice
Can I substitute Vlookup with Index
 
Join Date: Feb 2016
Posts: 13
paxon is on a distinguished road
Default Can I substitute Vlookup with Index


Hi All,
I am trying to figure out if there is another formula rather than VLookup.
When you select column “A” on tab Test will automatically populate column B and C, taking information from the tab “new”.
To make the Vlookup works I hade to put in the first position the subcategory, changing the original layout. If I move subcategory in the 3rd column can I use another formula to populate the columns “Category” & “cost type” (I was thinking Index or Index match) but I am not very familiar with Index formula.
Thanks
Ale
Attached Files
File Type: xlsx test.xlsx (67.3 KB, 12 views)
Reply With Quote
  #2  
Old 03-09-2016, 12:28 PM
xor xor is offline Can I substitute Vlookup with Index Windows 10 Can I substitute Vlookup with Index Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Is it like shown in the attached?
Attached Files
File Type: xlsx test_2.xlsx (64.4 KB, 15 views)
Reply With Quote
  #3  
Old 03-10-2016, 01:22 AM
paxon paxon is offline Can I substitute Vlookup with Index Windows XP Can I substitute Vlookup with Index Office 2007
Novice
Can I substitute Vlookup with Index
 
Join Date: Feb 2016
Posts: 13
paxon is on a distinguished road
Default great help

Quote:
Originally Posted by xor View Post
Is it like shown in the attached?

That's what I was looking for.

Could be give me a quick description of the formula & why you put a Zero "0" in the of the two formulas.

Thanks for your help
Reply With Quote
  #4  
Old 03-10-2016, 03:56 AM
xor xor is offline Can I substitute Vlookup with Index Windows 10 Can I substitute Vlookup with Index Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

The formula in test!B7:

=INDEX(new!B$3:B$71,MATCH(test!$A7,new!$A$3:$A$71, 0))

INDEX has the following form: =INDEX(array, r, c)
where array is a range of cells (or an array constant), r is row number and c is column number. array can be one column or row or more columns or rows.
In the formula above array (=new!B3:B71) is one column. In that case the third argument (c) is not necessary. To determine r we use another function: MATCH(test!$A7,new!$A$3:$A$71,0). Match has syntax:

MATCH(lookup_value, lookup_array, [match_type])

lookup_value is here test!$A7, lookup_array is your subcategory in sheet new. To understand the third argument [match_type] you should read Excel Help to that function. 0 or FALSE as third argument means that Excel finds the first value that is exactly equal to lookup_value. No need for any sorting here.

I attach a new file where I have tried to change it so that Category is in column A and Subcategory in column B in sheet new. Furthermore I have created three names (see Name Manager) category, subcategory and cost.type. This naming isn't necessary but I find it convenient.
Attached Files
File Type: xlsx test_3.xlsx (64.4 KB, 12 views)
Reply With Quote
  #5  
Old 03-10-2016, 07:03 AM
paxon paxon is offline Can I substitute Vlookup with Index Windows XP Can I substitute Vlookup with Index Office 2007
Novice
Can I substitute Vlookup with Index
 
Join Date: Feb 2016
Posts: 13
paxon is on a distinguished road
Default

Thanks a lot for your help!!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I substitute Vlookup with Index Substitute for Content Controls in Word 97 - 2003 Document taryn Word 4 02-13-2015 01:30 PM
Can I substitute Vlookup with Index Help with LEN and Substitute function Natalee Excel 5 11-08-2014 07:56 AM
Can I substitute Vlookup with Index Find & Replace: substitute red-coloured words with underscores tinfanide Word 2 10-06-2012 11:04 PM
Match Index with sumproduct/vlookup angie.chang Excel 1 06-18-2012 08:47 AM
Can I substitute Vlookup with Index Vlookup or Index/Match - Multiple Criteria ruci1225 Excel 1 01-15-2012 07:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft