Hlookup or Index/Match ?

audrey

Active Member
Joined
Jul 30, 2008
Messages
491
[TABLE="width: 500"]
<tbody>[TR]
[TD]Dropdown (Month)
[/TD]
[TD]Amount
[/TD]
[TD]Jan/19
[/TD]
[TD]Feb/19
[/TD]
[TD]Mar/19
[/TD]
[TD]Apr/19
[/TD]
[TD]May/19
[/TD]
[TD]Jun/19
[/TD]
[TD]Jul/19
[/TD]
[TD]Aug/19
[/TD]
[TD]Sep/19
[/TD]
[TD]Oct/19
[/TD]
[TD]Nov/19
[/TD]
[TD]Dec/19
[/TD]
[/TR]
[TR]
[TD]Mar/19
[/TD]
[TD]1000
[/TD]
[TD][/TD]
[TD][/TD]
[TD]1000
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Hello, what would be easiest formula to pull the "Amount" in B2 to appear in the correct month from C2:M2 ?

Thank you for your help!

Audrey
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Like =INDEX($C2:$N$2,match(A2,$C$1:$N$1,0)) in B2 ?
 
Upvote 0
Sorry in C2 try

=IF(C$1=$A$2;$b$2,"")
and pull right to N2
 
Upvote 0
Hi,

Where is the source data saved? Is it in the form of a table?

arthurbr 's formula is correct. You need to put it in appropriate cell.

However, even hlookup formula also holds good if the data is available in one single row. Else it will be tedious to change row numbers in every cell.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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