Problems With an "If" Formula

Jingles3X

New Member
Joined
Oct 20, 2021
Messages
34
Office Version
  1. 2013
Platform
  1. Windows
Hi. I recently lost my job, and am returning to the world of Self Employed, in a service business.
As part of setting this business up, I am creating a flat rate pricing system so that I can quickly
and easily update my pricing, while giving a visual aid for selling from the customer standpoint.

One of the components of the pricing system is the "Materials Multiplier"... If The part costs between
X and Y then multiply it by Z.

I have been trying for several days to figure this out, with no luck.
I can use this formula: "=IF(AND(AJ27>B27,AJ27<P27),AB27)" for a single line, but that only
helps if ALL parts fall within $0 and $10. I am uploading an image of the table that I have created.

Can anyone advise me as to how to have a cell evaluate the cost of a part against each line in this table,
then populate my materials column for each individual repair with the appropriate multiplier?

Thank you.
 

Attachments

  • Untitled.png
    Untitled.png
    67 KB · Views: 18
I assume you're having problems with the VLOOKUP formula? This is what you have:

=VLOOKUP(AO9,'Set-Up'!C24:D32,3)

The 3 parameters in VLOOKUP are the value you're looking up (AO9), the table you're looking in ('Set-Up'!C24:D32) and the column to get the results from the table (3). Your table has only 2 columns (C and D) and you're asking for column 3, which is why you're getting the error. I assume that you set the table up like in post #9 with the 3 columns.
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I assume you're having problems with the VLOOKUP formula? This is what you have:

=VLOOKUP(AO9,'Set-Up'!C24:D32,3)

The 3 parameters in VLOOKUP are the value you're looking up (AO9), the table you're looking in ('Set-Up'!C24:D32) and the column to get the results from the table (3). Your table has only 2 columns (C and D) and you're asking for column 3, which is why you're getting the error. I assume that you set the table up like in post #9 with the 3 columns.
Hi. Yes, the table is set up with 3 columns. I did in-merge cells also
 
Upvote 0
Did you change the formula to match the table? Something like:

Rich (BB code):
=VLOOKUP(AO9,'Set-Up'!C24:E32,3)

You showed several sheets, but not the Set-up sheet, so I don't know for sure what the address should be.
 
Upvote 0
Did you change the formula to match the table? Something like:

Rich (BB code):
=VLOOKUP(AO9,'Set-Up'!C24:E32,3)

You showed several sheets, but not the Set-up sheet, so I don't know for sure what the address should be.
Yes, that is the exact and correct formula actually. I do believe i have it entered properly (willing to attach the entire workbook, just not sure it it is allowed).
Still receiving the same error


Here is the setup sheet.
FRP-In Progress.xlsx
ABCDEF
1
2
3
4
5Flat Rate Pricing Set-Up
6
7
8
9Labor Items
10
11Diangnostic Charge/Service Call Fee$ 95.00
12
13Labor Rate Auto Populated From Labor Calculator$ 154.88
14
15Warranty Reserve % to cover return trips, call backs, etc…3%
16
17Materials Markup
18
19
20Please Enter A Number that will be used as a materials multiplier for each of the ranges below
21
22
23Parts Cost Between This….And This…The Multiplier Should Be….
24$ -$ 25.005
25$ 25.01$ 50.004
26$ 50.01$ 100.003.5
27$ 100.01$ 200.003
28$ 200.01$ 350.002.5
29$ 350.01$ 500.002
30$ 500.01$ 1,000.001.5
31$ 1,000.01$ 1,500.001.25
32$ 1,500.00$ 200,000.001.075
Set-Up
Cell Formulas
RangeFormula
F13F13='Labor Calculator'!R23
 
Upvote 0
Did you change the formula to match the table? Something like:

Rich (BB code):
=VLOOKUP(AO9,'Set-Up'!C24:E32,3)

You showed several sheets, but not the Set-up sheet, so I don't know for sure what the address should be.
I am wondering if this is the problem....
1634864314256.png
 
Upvote 0
You can't upload your spreadsheet directly, but you can upload it to a file sharing site, and post a link to it. The problem with that is some people can't or won't download files from the internet for security reasons. My work won't allow it for example. If you want to do that, I'd recommend opening a new thread so more people will see it. One of them might be willing to download the file to look at it. I'm afraid I'm stuck. With what I can see, I don't know why your VLOOKUP isn't working.
 
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