IF Formula

Angus95

New Member
Joined
Jun 19, 2019
Messages
11
Hi,

Is there a better way to achieve this formula?


=IF(H8=Budget!$L$5,I8*Budget!$M$5,IF(H8=Budget!$L$6,I8*Budget!$M$6,IF(H8=Budget!$L$7,I8*Budget!$M$7,IF(H8=Budget!$L$8,I8*Budget!$M$8,IF(H8=Budget!$M$9,I8*Budget!$M$9,IF(H8=Budget!$L$10,I8*Budget!$M$10,IF(H8=Budget!$L$11,I8*Budget!$M$11,””))))))))&IF(H8=Budget!$L$12,I8*Budget!$M$12,IF(H8=Budget!$L$13,I8*Budget!$M$13,IF(H8=Budget!$L$14,I8*Budget!$M$14,IF(H8=Budget!$L$15,I8*Budget!$M$15,IF(H8=Budget!$L$16,I8*Budget!$M$16,IF(H8=Budget!$L$17,I8*Budget!$M$17,IF(H8=Budget!$L$18,I8*Budget!$M$18,””)))))))&IF(H8=Budget!$L$19,I8*Budget!$M$19,IF(H8=Budget!$L$20,I8*Budget!$M$20,IF(H8=Budget!$L$21,I8*Budget!$M$21,IF(H8=Budget!$L$22,I8*Budget!$M$22,IF(H8=Budget!$L$23,I8*Budget!$M$23,IF(H8=Budget!$L$24,I8*Budget!$M$24,IF(H8=Budget!$L$25,I8*Budget!$M$25,)))))))


Thanks in advance.

Angus
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How about (untested) ....

=I8*INDEX(Budget!M5:M25,MATCH(H8,Budget!L5:L25,0))
 
Last edited:
Upvote 0
How about...

Code:
=VLOOKUP(H8,Budget!L5:M25,2,0)*I8
 
Upvote 0
Glad we could help...thx for the feedback..:beerchug:
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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