Formula HELP!!

jpkreider

New Member
Joined
Sep 22, 2017
Messages
15
Here is my current formula for G18:

=IF(ISNUMBER(E18),VLOOKUP(E18,ReferenceTables!$B$13:$C$26,2)-F18,"0")

I'd like to adjust it to say that if H18, I18 or J18 has any text at all, that G18 is reduced by 1 for each cell that has text.

Is that possible to add to this formula? Thanks for your help!!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
try adding this to the end of your formula:

- CountA(H18:J18)
(minus the count of cells in the range that have something in it.)
 
Upvote 0
Try
Code:
=IF(ISNUMBER(E18),VLOOKUP(E18,ReferenceTables!$B$13:$C$26,2)-F18,"0")-SUMPRODUCT(--ISTEXT(H18:J18))
 
Upvote 0
if you only want text and not numbers
try

=SUM(COUNTIF(INDIRECT({"H18","I18","J18"}),"*"))

=IF(ISNUMBER(E18),(VLOOKUP(E18,ReferenceTables!$B$13:$C$26,2)-F18)-(SUM(COUNTIF(INDIRECT({"H18","I18","J18"}),"*"))),"0")

i thought non contiguous range opps

=IF(ISNUMBER(E18),(VLOOKUP(E18,ReferenceTables!$B$13:$C$26,2)-F18)-(COUNTIF(H18:J18,"*")),"0")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,021
Latest member
pingpong7117

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