Use Cell Value in Formula

Steve 1962

Active Member
Joined
Jan 3, 2006
Messages
382
Office Version
  1. 365
Platform
  1. Windows
Hi

Just require a change to a formula in column I.

I want each formula in column I to use the text in cell I1, Cell I2 works fine if I "hard-code" the contents of cell I1 into the formula. However, when I attempt to reference cell I1 into the formula in cell I3, it doesn't work.

Is there a change to the formula that I can use so that I don't have to go and retype the formula in two areas - it just automatically references the value in cell I1 ?

Thanks

Steve


Book1
ABCDEFGHI
1Allocation DsCommentStarttimeEndtimeMinutesworkedStartlocationWU2Y
2SERVICE ID WU2YPASS RELIEVESSl33 ldd77701/08/2018 14:0001/08/2018 23:59599Crew01/08/2018 00:002:00:00 PM599
3SERVICE ID WU2YPASS RELIEVESSl33 ldd77701/08/2018 14:0001/08/2018 23:59599Crew01/08/2018 00:002:00:00 PM 
Sheet
Cell Formulas
RangeFormula
I2=IF(D2="","",IF(SUM(COUNTIF($B2,"*WU2Y*")+COUNTIF($A2,"*WU2Y*"))>0,$E2,""))
I3=IF(D3="","",IF(SUM(COUNTIF($B3,I1)+COUNTIF($A3,I1))>0,$E3,""))
 
Does this do what you need?

=IF(D3="","",IF(SUM(COUNTIF($B3,"*"&$I$1&"*")+COUNTIF($A3,"*"&$I$1&"*"))>0,$E3,""))
 
Upvote 0

Forum statistics

Threads
1,226,850
Messages
6,193,335
Members
453,790
Latest member
yassinosnoo1

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