Hlookup or Index/Match ?

audrey

Active Member
Joined
Jul 30, 2008
Messages
491
Dropdown (Month)
Amount
Jan/19
Feb/19
Mar/19
Apr/19
May/19
Jun/19
Jul/19
Aug/19
Sep/19
Oct/19
Nov/19
Dec/19
Mar/19
1000
1000

<tbody>
</tbody>


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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,215,432
Messages
6,124,858
Members
449,194
Latest member
HellScout

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