Formula Showing #Value

ianharper68

New Member
Joined
May 16, 2024
Messages
22
Office Version
  1. 2021
Platform
  1. MacOS
Hi All ....

I have the following formula and it works fine except in blank cells can anybody help please:

=IF(Q8=0,"-",INDEX(Calculations!$C$13:$E$13,XMATCH(Q8,Calculations!$C$12:$E$12,-1))*(IF(Q8<2,1,Q8)))*[@[Chargeable Days]]

Screenshot 2024-10-01 at 19.42.29.png
 
I am guessing a little here but see if this works in AH8:

Excel Formula:
=IF(Q8=0,0,
IF(T8="NO",
INDEX(Calculations!$C$13:$E$13,XMATCH(Q8,Calculations!$C$12:$E$12,-1))*(IF(Q8<2,1,Q8)),
INDEX(Calculations!$C$36:$E$36,XMATCH(Q8,Calculations!$C$35:$E$35,-1))*(IF(Q8<2,1,Q8))*N([@[Chargeable Days]])))
 
Upvote 0
Solution

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I am guessing a little here but see if this works in AH8:

Excel Formula:
=IF(Q8=0,0,
IF(T8="NO",
INDEX(Calculations!$C$13:$E$13,XMATCH(Q8,Calculations!$C$12:$E$12,-1))*(IF(Q8<2,1,Q8)),
INDEX(Calculations!$C$36:$E$36,XMATCH(Q8,Calculations!$C$35:$E$35,-1))*(IF(Q8<2,1,Q8))*N([@[Chargeable Days]])))
Getting a #N/A :(

I even tried this =IF(T8="NO",IF(Q8=0,0
 
Upvote 0
Getting a #N/A :(

I even tried this =IF(T8="NO",IF(Q8=0,0
Sorry I didn't check the T Column .... If the T8 cell says NO I get a result of $54 which is correct**, however if the T8 cells says YES then I get a #N/A result

**< 1 LDM x $1.5 x 36 Chargeable Days = $54
 
Upvote 0
#NA means not found.
Check the value in row 35 (the range in the match) against what you have in Q8
 
Upvote 0
#NA means not found.
Check the value in row 35 (the range in the match) against what you have in Q8
Hi Alex,

I think we are nearly there. Yes that was my fault I had 0.5 in cell C36 on the calculations page and it should have been a 1

But the formula only works with *[@[Chargeable Days]] but I get the #Value error in all empty cells.

If I add the *N([@[Chargeable Days]]))) I get a formula error?
 

Attachments

  • Screenshot 2024-10-03 at 10.03.39.png
    Screenshot 2024-10-03 at 10.03.39.png
    156.9 KB · Views: 3
Upvote 0
I'm a bit confused did you copy in the formula I posted into the formula box ?
=IF(Q8=0,0,IF(T8="NO",INDEX(Calculations!$C$13:$E$13,XMATCH(Q8,Calculations!$C$12:$E$12,-1))*(IF(Q8<2,1,Q8)),INDEX(Calculations!$C$36:$E$36,XMATCH(Q8,Calculations!$C$35:$E$35,-1))*(IF(Q8<2,1,Q8))*N([@[Chargeable Days]])))

Thats is what I pasted :)
 
Upvote 0
So I am not getting the error now? Strange BUT it is not calculating the Chargeable Days? I just a single date charge?
So I changed to this and it seemed to work by adding the *[@[Chargeable Days]] after the first string ... more luck than judgement :ROFLMAO::ROFLMAO::ROFLMAO:

=IF(Q8=0,0,IF(T8="NO",INDEX(Calculations!$C$13:$E$13,XMATCH(Q8,Calculations!$C$12:$E$12,-1))*(IF(Q8<2,1,Q8))*[@[Chargeable Days]],INDEX(Calculations!$C$36:$E$36,XMATCH(Q8,Calculations!$C$35:$E$35,-1))*(IF(Q8<2,1,Q8))*N([@[Chargeable Days]])))
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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