Need cell reference to change based on condition.

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
343
Office Version
  1. 2013
Platform
  1. Windows
Cell B4 has the value 20% Cell B5, B6, B7, B8 and B9 are all currently empty. Cells D5 - D9 each have a value. Cells E5 - E9 currently have this formula =D5*$B$4 with D5 changing do D6, D7, D8 and D9. Here's what I need. If any of B5 - B9 have a value, I want the formula for the corresponding E5-E9 to change so instead of looking at $B$4, it looks at the value in B5, B6, B7, B8 or B9 accordingly. Thank you in advance.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
13,897
Office Version
  1. 365
Platform
  1. Windows
This will do it
Excel Formula:
=IF(B5<>"",B5,$B$4)*D5
 
Solution

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
343
Office Version
  1. 2013
Platform
  1. Windows
Got it figured out =IF(B5="",$B$4*D5,$B5*D5) Thanks
 

Forum statistics

Threads
1,144,340
Messages
5,723,804
Members
422,518
Latest member
quack_quack

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
Top