Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-12-2022, 11:42 AM
SoWTF SoWTF is offline Excel Formula Windows 11 Excel Formula Office 2021
Novice
Excel Formula
 
Join Date: Sep 2022
Posts: 3
SoWTF is on a distinguished road
Unhappy Excel Formula

Hello,



I was wondering if anyone would be able to assist with an Excel formula.

Basically, cells A1-C1 contain drop-down menus.

A1 has 3 options: Morrisons, Aldi, Lidl.
B1 has 2 options: 2-4, and 5-7
C1 has 7 options: 1, 2, 3, 4, 5, 6, and 7.

If A1=Morrisons, B1=2-4, and C1=1 => The result has to be £5.
If A1=Lidl, B1=2-4, and C1=1 => The result has to be £7.
Etc.

I tried the following formula: =IF(AND(A1=Aldi, B1=2-4, C1=1), 7)
However, the result is always FALSE.

If possible, would anyone be able to help me work out the formula, please?

Thank you in advance!
Reply With Quote
  #2  
Old 09-12-2022, 01:10 PM
SoWTF SoWTF is offline Excel Formula Windows 11 Excel Formula Office 2021
Novice
Excel Formula
 
Join Date: Sep 2022
Posts: 3
SoWTF is on a distinguished road
Default

Hi guys,

I managed to work out the formula for one of the shops.

=IF(AND(A1="Morrisons",B1="2-4",C1 < 5),"£5", "£6") [As I needed 5-7 to equal £6]

However, I'm still trying to figure out how to get different results for different shops.
Reply With Quote
  #3  
Old 09-12-2022, 11:29 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Excel Formula Windows 10 Excel Formula Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,767
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Hi
Please post a sample sheet ( no pics please) with some data.Make sure your desired results are shown, mock them up manually if necessary.
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #4  
Old 09-12-2022, 11:49 PM
ArviLaanemets ArviLaanemets is offline Excel Formula Windows 8 Excel Formula Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Attached is an example with possible solution (as much of one as it was possible with so sparse info).

As there was no explanation how values in column C will affect the result (I got only, that when the value in column C is less or equal of 5, then it doesn't affect the result), I added a dummy part into formula, which will add 1 whenever the value in column C will be >5.

Essentially, the result is read from table in sheet ShopRanges.
Attached Files
File Type: xlsx CalulationExample.xlsx (16.7 KB, 6 views)
Reply With Quote
  #5  
Old 09-13-2022, 03:34 AM
SoWTF SoWTF is offline Excel Formula Windows 11 Excel Formula Office 2021
Novice
Excel Formula
 
Join Date: Sep 2022
Posts: 3
SoWTF is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
Hi
Please post a sample sheet ( no pics please) with some data.Make sure your desired results are shown, mock them up manually if necessary.
Hello,

I'm very new to Excel. It was just an example o see what formula should be used.

I have attached an example of what I need.
Workbook.xlsx

Basically, for the drop down menus, when I choose a client, a taxi size, and a taxi heads, I need the cost to return a specific value (eg £7).

I hope this makes sense.

Also, thank you for taking the time to reply to this
Reply With Quote
  #6  
Old 09-13-2022, 07:27 AM
ArviLaanemets ArviLaanemets is offline Excel Formula Windows 8 Excel Formula Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

I updated my previous example accordingly your last workbook.

Again it is unclear for what the column TaxiHead is needed! I added it, and used it in calculations, but currently you can leave it out, and nothing changes!

Based on name, the column Reason probably contains some texts. As you want this text to be displayed too, I had to add a helper column RowNo into PriceList Table, and instead of SUMIFS() had to use INDEX() to retrieve result data from PriceList.

An advice - never place different Tables onto same sheet. When you do this, you practically restrict yourself from adding rows into Tables, or deleting them!
Attached Files
File Type: xlsx CalulationExample.xlsx (19.8 KB, 6 views)
Reply With Quote
Reply

Tags
excel 2013 formula, microsoft excel training

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Formula Excel Formula ctruggles Excel 1 12-05-2016 12:12 PM
excel formula jcaal50 Excel 6 05-16-2014 04:01 PM
Help with excel formula GoldenSlumbers Excel 2 12-13-2012 03:32 AM
Excel Formula Help masoom84 Excel 1 03-07-2009 09:41 AM
Excel Formula Excel Formula Help Shahzad Excel 1 12-07-2008 04:13 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:26 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft